[ubuntu-za] cron tutorial or Ubuntu 7.04
Thomas Fogwill
thomas.fogwill at meraka.org.za
Fri Aug 17 10:17:21 BST 2007
On Fri, 2007-08-17 at 10:15 +0200, William Kinghorn wrote:
> Do I need to tell it to use root, and sh
>
> this is my line
>
> 23 59 * * * root /home/feisty-mirrorBuild.sh >> /home/feisty-mirror.log 2>&1
If this is a line in /etc/crontab, it should work fine (and you've
already told it to run as root). /etc/crontab is a system-wide config
for cron. A line like
23 59 * * * root some-command
in /etc/crontab is equivalent to doing the following as root
$ crontab -e
23 59 * * * some-command
i.e. /etc/crontab has the same basic format, but includes one additional
field to specify which user the scheduled command should run as.
So, provided /home/feisty-mirrorBuild.sh is executable, you're ok.
Cheers
Thomas
More information about the ubuntu-za
mailing list