Next: About this document ...
Up: adminMailer
Previous: Importing accounts from other
Appendix A
A cron job automatically runs tasks on your computer at a designated time
frame. The dispatch.py cron job should be executed every minute (the
shortest time frame available) for peak performance. A crontab is an
excellent program that allows you to execute a command and automate tasks
during a specific predetermined time frame. Crontab can be found on almost
all Linux and Unix systems.
Getting started:
- Type crontab -e as the user that you want the cron job to be executed as.
- Each number represents the placeholder; the format of the job is as
follows:
1 = Minute after the hour that you want the command executed
2 = Hour of execution (Military Time)
3 = Day of the month
4 = Month of the year
5 = Day of the week
6 = `Command'
- Example:
0-59 * * * * /pathto/dispatch.py
- The above example, /pathto/dispatch.py, will run every minute forever. The
* means run every instance of the value in the field (i.e. an * in the day
field means to run everyday).
- Other crontab commands:
crontab -e opens the editor
crontab -l lists the contents of the crontab
crontab -r removes the crontab
Next: About this document ...
Up: adminMailer
Previous: Importing accounts from other