Standing Cloud Knowledge Base

Cron Jobs

Last Updated: Feb 07, 2013 11:43AM MST
To create and modify a cron job for your deployment, begin by either connecting to your server via SSH or opening a web terminal in your browser.

From the command line type:  
crontab -e



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.
comments powered by Disqus

Cloud application marketplace and management platform



    Email Us

support@standingcloud.com
http://assets3.desk.com/
false
sc_tech_support
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete