Cron Jobs

General help with installation, scripts, etc....

Cron Jobs

Postby AdMan » Tue Jul 31, 2007 10:25 am

I am setting up some cron jobs ...

What should the command line be?
http://www.site.com/program.php

OR

/www/program.php
Website marketing ebooks & software
http://www.express-marketing.com
AdMan
 
Posts: 10
Joined: Tue Jan 17, 2006 6:46 pm

Postby kevin » Fri Aug 10, 2007 5:32 pm

Hi,

Login to your control panel and click Cron Jobs to enable scheduling.
kevin
CWH Staff
 
Posts: 245
Joined: Mon Dec 13, 2004 12:48 pm
Location: Vancouver, BC

resources to learn about cron jobs

Postby AdMan » Fri Feb 29, 2008 11:00 am

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?
Website marketing ebooks & software
http://www.express-marketing.com
AdMan
 
Posts: 10
Joined: Tue Jan 17, 2006 6:46 pm

Postby divya » Sat Mar 01, 2008 10:24 pm

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
divya
 

Postby AdMan » Sun Mar 02, 2008 5:13 am

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?
Website marketing ebooks & software
http://www.express-marketing.com
AdMan
 
Posts: 10
Joined: Tue Jan 17, 2006 6:46 pm

Postby smisha » Sun Mar 02, 2008 12:15 pm

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
smisha
 


Return to General Help

Who is online

Users browsing this forum: No registered users and 4 guests

cron