Friday, December 11, 2009

Crob Job Example

1. crobtab -e
2. Add following line
* * * * * you command | logger "wget ran"
3. Save and exit. (You should see a message say "crontab: installing new crontab")

What does this command do?
It will run your command every min, and write a message to the system log. The system log usually locate at /var/log/messsages

More reference:
http://aplawrence.com/BDD/bbcronbasics.html
http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/

No comments: