I would also suggest the following change to create log of the process. It makes it easier to debug: 0 19 * * * /usr/bin/backup > /usr/logs/backup.cron.log 2>&1 I put cron in the log name, as a way of reminding me what runs the process. Dave -----Original Message----- From: Paul Miles [mailto:paul.miles@allsecurenet.com] Sent: Monday, April 01, 2002 7:58 AM To: Richard Ibbotson; suse-linux-e@suse.com Subject: Re: [SLE] Cron
The script works fine but I can't get cron to run the script which is called backup and is in /usr/bin/backup. Would the syntax be something like this to run at 7.00 p.m. at night ? ...
14 0 * * * root /usr/bin/backup
try : bash> crontab -u root -e 0 19 * * * /usr/bin/backup This will run backup at 7pm every night as user root. Kind regards, Paul Miles All Secure Networks Visit www.allsecuredomain.com for low cost web hosting and domain registration ----- Original Message ----- From: "Richard Ibbotson" <richard@sheflug.co.uk> To: <suse-linux-e@suse.com> Sent: Monday, April 01, 2002 2:52 PM Subject: [SLE] Cron
Hi
I'm trying to understand the syntax for a cron job that I'd like to run once a day. I've put a script into /usr/bin which will create a tape archive once a day and then drop it into a CD with CD-Record.
The script works fine but I can't get cron to run the script which is called backup and is in /usr/bin/backup. Would the syntax be something like this to run at 7.00 p.m. at night ? ...
14 0 * * * root /usr/bin/backup
Probably not but some help would be welcome. Read the man pages and other docs. Didn't make a lot of sense to me.
Thank you
-- Richard
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
participants (1)
-
Olson, David