|
This is your problem:
#!/usr/bin/perl
perl /home/mrtg/conf/graphprune.pl
Your are using a #! line specifying that this is a perl script, but in fact it is a shell script that calls a perl script (graphprune.pl is pa perl script, you have written a shellscript).
Try this:
#!/bin/sh
/usr/bin/perl /home/mrtg/conf/graphprune.pl
(You may need to modify the paths for /bin/sh and /usr/bin/perl depending on your system).
The 'divide by zero' error came from perl, which thought you wanted to divide 'home' by 'mrtg' when it saw home/mrtg.
_________________ Steve Shipway UNIX Systems, ITSS, University of Auckland, NZ Woe unto them that rise up early in the morning... -- Isaiah 5:11
|