Hello , I added the user root to the crontab file below : - 50 13 * * 1 3 5 root /scripts/backup/test.sh 10 14 * * 1 3 5 root /scripts/backup/twiceweekly.sh 00 14 * * 1 root /scripts/backup/test1.sh
/var/log/cron showed this : - May 27 13:50:00 SA01 CROND[12181]: (root) CMD (3 5 root /scripts/backup/test.sh ) May 27 14:00:00 SA01 CROND[12192]: (root) CMD ( /sbin/rmmod -as) May 27 14:00:00 SA01 CROND[12193]: (root) CMD (root /scripts/backup/test1.sh) May 27 14:01:00 SA01 CROND[12197]: (root) CMD (run-parts /etc/cron.hourly) May 27 14:10:00 SA01 CROND[12207]: (root) CMD ( /sbin/rmmod -as) May 27 14:10:00 SA01 CROND[12208]: (root) CMD (3 5 root /scripts/backup/twicew eekly.sh) However , none of the scripts were executed. The scripts look like : - cp /terrasky/tsfileserver/Techadmin/timesheet/madhvi /usr/home/madhvi/timesheet cp /etc/ftpaccess /terrasky/tslibrary/test/ftpaccess_test ----- Original Message ----- From: "Huter.Liu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 27, 2002 12:24 PM Subject: Re: cron > hi,madhvi! > I'm wondering maybe you forget to add you name before shell command. > 50 15 30 * * /scripts/backup/monthly.sh > ^_^ > I don't know what version of linux are you using.I use 7.3 and 7.2,I've added one line to my crontab file and it work fine:-) > [root@linux etc]# cat crontab > SHELL=/bin/bash > PATH=/sbin:/bin:/usr/sbin:/usr/bin > MAILTO=root > HOME=/ > > # run-parts > 01 * * * * root run-parts /etc/cron.hourly > 02 4 * * * root run-parts /etc/cron.daily > 22 4 * * 0 root run-parts /etc/cron.weekly > 42 4 1 * * root run-parts /etc/cron.monthly > > 0-59/5 * * * * root /usr/bin/mrtg /etc/mrtg/mrtg.cfg > 00 12 * * * huter /usr/local/bin/backup > [root@linux etc]# cat /usr/local/bin/backup > tar c /usr/local/var/users/* /usr/local/var/charinfo/* /usr/local/var/charsave/* | ncftpput -c -uhuter -pmypasswd ftp.xtu.edu.cn huter/backup.tar > > [EMAIL PROTECTED] > 2002-05-27 > > > > > > _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list