[Wolves] Baffled by cron (eedjit alert)

David Goodwin dg at clocksoft.com
Mon May 23 07:05:06 BST 2005


> Can anyone give me an example of a really simple cron job with an
> obvious result that I can use to test all this?
> 

Run : "crontab -e"

(It will open your crontab up in what ever you have $EDITOR set to,
possibly vi/vim or emacs).

Put in it :

* * * * * /bin/touch /tmp/test

(Should run each minute, and create (and update the timestamp) on
/tmp/test)

Alternatively :

* * * * * echo "test cron"

(minute, hour, dayOfMonth, month, dayOfWeek) (See "man 5 crontab")

Which should mail things to "you" (you may have to run "mail" to read
them, unless you've setup your mail server to forward mail onto
somewhere useful)

Good luck,
David.

-- 
David Goodwin
w: http://www.clocksoft.com 
e: david.goodwin at clocksoft.com
t: 0121 313 3850



More information about the Wolves mailing list