Tasks automatisation: the cron daemon: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
Line 6: Line 6:


This will edit the user crontab, and ensure that changes are notified to the crond daemon.
This will edit the user crontab, and ensure that changes are notified to the crond daemon.
== Crontab Debugging ==
* When debugging crontab scripts, *make sure* that the script runs OK first. Run it as it would be loaded from the crontab daemon, and verify that no problems occur.

Revision as of 12:43, 10 August 2007

Crontab Editing

  • You should not edit by hand /etc/crontab. This system wide file may not even exist (on Gentoo it does not exist for example). Instead use
crontab -e u username

This will edit the user crontab, and ensure that changes are notified to the crond daemon.

Crontab Debugging

  • When debugging crontab scripts, *make sure* that the script runs OK first. Run it as it would be loaded from the crontab daemon, and verify that no problems occur.