From the command line type:
This will open the cron job file in the "vi" editor.
The default (blank) cron job file will look like this:
The commented heading gives you an indication of the format that your syntax needs to be in.
To edit the file, begin by typing i
That is the [i]nsert command.
m = minute
h = hour
dom = day of month
mon = month
dow = day of week
command = the command, script, or file you wish to execute
* * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0 - 6) (Sunday=0) | | | +------- month (1 - 12) | | +--------- day of month (1 - 31) | +----------- hour (0 - 23) +------------- min (0 - 59)m = minute
Here is a sample cron job file:
This cron job will post the text "Your Cron Job was successful: time stamp" to a log file in the tmp directory named cronjobtest.log
The action will take place every 30 minutes Monday through Friday between 8 a.m. and 5 p.m.
To save your file in the vi editor, press [esc] and then type :wq
this will [w]rite your file and [q]uit the editor.
If you have any questions or need assistance setting up a cron job, please contact support.