D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Crontab sanity check

 

Oh yeah. I'd missed adding the user name "root". Just did a scheduled run set for 3:30 and it kicked off fine.

Thanks Martijn (and Philip)

Martin

On 10/08/11 12:33, Martijn Grooten wrote:
On Wed, Aug 10, 2011 at 12:29 PM, Philip Hudson wrote:
You must use:

crontab -e

For root crontab:
sudo crontab -e
Or, if you want to use /etc/crontab add the user name before the command, e.g.

1 23 * * * root /opt/cronjob/startme
1 7 * * * root /opt/cronjob/stopme

At least, that's what /etc/crontab on my Ubuntu suggests; I always use
crontab -e myself.

Martijn.


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq