| Author |
Message |
AdMan
Joined: 17 Jan 2006 Posts: 9
|
Posted: Tue Jul 31, 2007 9:25 am Post subject: Cron Jobs |
|
|
I am setting up some cron jobs ...
What should the command line be?
http://www.site.com/program.php
OR
/www/program.php |
|
| Back to top |
|
 |
kevin CWH Staff
Joined: 13 Dec 2004 Posts: 209 Location: Vancouver, BC
|
Posted: Fri Aug 10, 2007 4:32 pm Post subject: |
|
|
Hi,
Login to your control panel and click Cron Jobs to enable scheduling. |
|
| Back to top |
|
 |
AdMan
Joined: 17 Jan 2006 Posts: 9
|
Posted: Fri Feb 29, 2008 10:00 am Post subject: resources to learn about cron jobs |
|
|
I am still having difficulty getting a cron job to run...
Does it make a difference if you put the path as follows:
php /home/mypath/public_html/program.php
vs
php /home/mypath/www/program.php
here's the string of how I've got my cron job set up:
php '/home/mypath/public_html/program.php';
This doesn't seem to work.
Is it a setting in the program that I should be looking at?
Are there any good online resources that I can check out to learn more about debugging cron jobs with cpanel? |
|
| Back to top |
|
 |
divya CWH Staff
Joined: 24 Jul 2007 Posts: 52
|
Posted: Sat Mar 01, 2008 9:24 pm Post subject: |
|
|
Hello,
php /home/mypath/public_html/program.php
vs
php /home/mypath/www/program.php
doesn't make any difference since www is just a symbolic link to public_html.
Kindly try modifying the cronjob as:
/usr/local/bin/php /home/mypath/public_html/program.php
If you are still getting any errors, please drop a mail to support@canadianwebhosting.com and we will look into it.
Regards,
Divya |
|
| Back to top |
|
 |
AdMan
Joined: 17 Jan 2006 Posts: 9
|
Posted: Sun Mar 02, 2008 4:13 am Post subject: |
|
|
I was using the following format:
php '/home/mypath/public_html/program.php';
with the single quotes and semicolon: because I saw that somewhere else.
Do I need these extras with the string? |
|
| Back to top |
|
 |
smisha CWH Staff
Joined: 31 Aug 2007 Posts: 4
|
Posted: Sun Mar 02, 2008 11:15 am Post subject: |
|
|
Hello,
There won't be any single quotes/semicolon with the cronjob string.
Please use the format show below to set the cronjob.
/usr/local/bin/php /home/mypath/public_html/program.php
If you still encounter any issues, please drop a mail to support@canadianwebhosting.com.
Regards,
Smisha |
|
| Back to top |
|
 |
|