Re: can't use cron
"Kuhar, Mike" <[EMAIL PROTECTED]> wrote: >If you're trying to add the line as given: > >0 1 * * 5 root /root/update > >remove the word root after the number 5. This field is for a command, not a >user. That's true of normal crontabs, but the syntax of /etc/crontab is slightly different, and has that extra username field. -- Colin Watson [EMAIL PROTECTED]
RE: can't use cron
If you're trying to add the line as given: 0 1 * * 5 root /root/update remove the word root after the number 5. This field is for a command, not a user. You might also want to clean it up so that any test output is handled correctly, such as: 0 1 * * 5 /root/update > /dev/null 2>&1 # Some comment for documentation -mk > -Original Message- > From: Kim De Smaele [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 03, 2001 8:21 AM > To: Colin Watson > Cc: debian-user@lists.debian.org > Subject: Re: can't use cron > > > maybe it's just a litle mistake: > > make sure you are root ( I made this mistake once ! ) > > greets, > Kim: > > Colin Watson wrote: > > > dko <[EMAIL PROTECTED]> wrote: > > >I wrote a script and I want cron to start it everyweek > > >I added 10 1 * * 5 root /root/update in crontab file and > restarted cron > > >when I put crontab -l, it says no crontab for root ?!? > > > > root's crontab is different from /etc/crontab (you edit > root's crontab > > with 'crontab -e'). As long as /root/update is executable, > what you've > > done should work fine. > > > > Cheers, > > > > -- > > Colin Watson > [EMAIL PROTECTED] > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] >
Re: can't use cron
maybe it's just a litle mistake: make sure you are root ( I made this mistake once ! ) greets, Kim: Colin Watson wrote: > dko <[EMAIL PROTECTED]> wrote: > >I wrote a script and I want cron to start it everyweek > >I added 10 1 * * 5 root /root/update in crontab file and restarted cron > >when I put crontab -l, it says no crontab for root ?!? > > root's crontab is different from /etc/crontab (you edit root's crontab > with 'crontab -e'). As long as /root/update is executable, what you've > done should work fine. > > Cheers, > > -- > Colin Watson [EMAIL PROTECTED] > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: can't use cron
dko <[EMAIL PROTECTED]> wrote: >I wrote a script and I want cron to start it everyweek >I added 10 1 * * 5 root /root/update in crontab file and restarted cron >when I put crontab -l, it says no crontab for root ?!? root's crontab is different from /etc/crontab (you edit root's crontab with 'crontab -e'). As long as /root/update is executable, what you've done should work fine. Cheers, -- Colin Watson [EMAIL PROTECTED]