> >Is there any reason why a script wouldn't run from /etc/crontab in ES2B? > > > >I have tried almost everything, it seems - put full path names in the > >script, put a touch command to test if it is working, but the script never > >runs. /var/logs/syslog says that the crontab was reloaded, but the script > >never runs? > > > >What else do I need to do? The script runs fine from a command line.
> Is there a blank line at the end of the crontab? I'm pretty sure you have > to have one. Perhaps pasting your crotab into the email would help also. Here it is. there is a line but it still doesn't work.. # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file. # This file also has a username field, that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # 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 15 * * * * root /root/bandwidth router: -root- # My new script: (hey, ugly but it works!!) #!/bin/sh touch /tmp/runnow PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin TDATA=`/sbin/ipchains -x -n -v -L input | grep eth0 | grep tcp | grep ACCEPT | grep 1024:65535 | cut -f2 -d\ ` UDATA=`/sbin/ipchains -x -n -v -L input | grep eth0 | grep udp | grep ACCEPT | grep 1024:65535 | cut -f2 -d\ ` MAIL=`/sbin/ipchains -x -n -v -L input | grep '* -> 25' | cut -f2 -d\ ` IWEB=`/sbin/ipchains -x -n -v -L input | grep '* -> 80' | grep eth0 | cut -f2 -d\ ` set $(date) echo $2-$3-$6 $4,$TDATA,$UDATA,$MAIL,$IWEB >> /mnt/bw ipchains -Z router: -root- # ls -al /root drwxr-x--- 3 root root 192 Oct 9 00:20 . drwxr-xr-x 15 root root 576 Oct 3 13:38 .. -rw-r----- 1 root root 360 Mar 7 2000 .profile drwxr-xr-x 2 root root 128 Oct 3 17:48 .ssh -rwxrwxrwx 1 root root 555 Oct 9 02:02 bandwidth -rw-r--r-- 1 root root 632 Oct 9 00:20 25 router: -root- # Cheers, John _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user