[X-Unix] Cron jobs not running, how to log cron

Jerry Krinock jerry at ieee.org
Thu Jun 17 04:35:41 PDT 2004


on 04/06/16 18:48, David Haines at haines.d at comcast.net wrote:

> Here's the listing (crontab -l) :
> 
> 45      1       *       *       *       root    /etc/ditto_daily.sh
> 15      0       *       *       1,2,4,6 root    /etc/junkmailcleanup.sh

It looks like you have a column in there for "user"="root".  I have never
seen this syntax.  Try this instead:

> 45      1       *       *       *         /etc/ditto_daily.sh
> 15      0       *       *       1,2,4,6   /etc/junkmailcleanup.sh

To make a cron job to run with user=root, you name its file "root"; i.e. put
it in the file /var/cron/tabs/root.

Also, make sure you are using the crontab editor, not any old text editor.




More information about the X-Unix mailing list