Previous: , Up: Simple examples   [Contents][Index]


You have an executable my-program in your home directory, which you want to run every hour. Create a file job.vixie in directory ~/.cron with the following contents

0 * * * * my-program

then run the command mcron.

Alternatively (full compatibility with Vixie cron), set your environment variable EDITOR to your favorite editor, run crontab -e, put the above line into the edit buffer, save and exit. For this to work the cron daemon must be already running on your system, as root. This style of operations is considered deprecated.