Difference between revisions of "Cron Jobs"

From Hostek.com Wiki
Jump to: navigation, search
m (cPanel - Setting up Cron Jobs)
Line 1: Line 1:
 
__FORCETOC__
 
__FORCETOC__
  
==cPanel - Setting up Cron Jobs==
+
==cPanel/Linux - Setting up Cron Jobs==
[http://hostek.com/tutorials/cpanel-x3-cronjob.html How to setup a cron job]
+
*[http://hostek.com/tutorials/cpanel-x3-cronjob.html How to setup a cron job]
  
Please keep in mind that you may have to have a cron job be executed by a specific service.<br />
+
#Please keep in mind that you may have to have a cron job be executed by a specific service.<br />
For Example a php file to be ran:
+
#For Example a PHP File to be run:
 
  /usr/bin/php -q /home/user/public_html/cron.php
 
  /usr/bin/php -q /home/user/public_html/cron.php
  
If you do not want the email to be received for confirmation you will need to add the following to the end of your request:
+
#If you do not want the email to be received for confirmation you will need to add the following to the end of your request:
  
 
  /usr/bin/php -q /home/user/public_html/cron.php > /dev/null
 
  /usr/bin/php -q /home/user/public_html/cron.php > /dev/null
  
If you are using get for a http request it would be like this:
+
#If you are using get for a http request it would be like this:
 
  /usr/bin/curl --silent --output /dev/null <nowiki>http://yourdomain.com/cron.php</nowiki>
 
  /usr/bin/curl --silent --output /dev/null <nowiki>http://yourdomain.com/cron.php</nowiki>
  
==WCP/MochaPanel - Setting up Crong Jobs==
+
==WCP/Windows - Setting up Cron Jobs==
This option is currently not available within MochaPanel.
+
#This option is currently not available within our Windows plans, which utilize WCP (MochaPanel).
 +
#Alternatively, if you have need of a Cron Job: please submit a ticket to our support team (here: [http://support.hostek.com/ Support]) or send an email to '''support@hostek.com''' with the '''Frequency''' and the '''URL''' of the Task and we'll see if we can't get that added for you.

Revision as of 14:44, 7 May 2014


cPanel/Linux - Setting up Cron Jobs

  1. Please keep in mind that you may have to have a cron job be executed by a specific service.
  2. For Example a PHP File to be run:
/usr/bin/php -q /home/user/public_html/cron.php
  1. If you do not want the email to be received for confirmation you will need to add the following to the end of your request:
/usr/bin/php -q /home/user/public_html/cron.php > /dev/null
  1. If you are using get for a http request it would be like this:
/usr/bin/curl --silent --output /dev/null http://yourdomain.com/cron.php

WCP/Windows - Setting up Cron Jobs

  1. This option is currently not available within our Windows plans, which utilize WCP (MochaPanel).
  2. Alternatively, if you have need of a Cron Job: please submit a ticket to our support team (here: Support) or send an email to support@hostek.com with the Frequency and the URL of the Task and we'll see if we can't get that added for you.