Hi all I put together a little script to e-mail me the day's bandwidth usage, which would simply run ipchains and show its accounting figures and e-mail them to me, then reset the counters..
# cat bandwidth.sh #!/bin/ash touch /tmp/runnow ipchains -n -v -L output | mail john@myaddress ipchains -Z This script has permissions level 777 and is owned by root:root. my /etc/crontab file includes: # m h dom mon dow user command 40 6 * * * sh-httpd savelog -g adm -m 640 -u sh-httpd -c 4 /var/sh-log/sh-httpd.log 42 6 * * * root run-parts --report /etc/cron.daily 47 6 * * 7 root run-parts --report /etc/cron.weekly 52 6 1 * * root run-parts --report /etc/cron.monthly 0 8 * * * root /root/bandwidth.sh I am using Eigerstein-2B. Basically, it Doesn't Work. No script gets run. I tried restarting cron, tried putting the /root/bandwidth.sh script in /etc/cron.daily/, but that didn't make any difference. Run manually from a command line, it works ok, just never from cron. Nothing goes in the logs either. What am I doing wrong? Cheers John _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
