dwayne dibbly Posted March 27, 2006 Posted March 27, 2006 Hi, I would like to have a script run once an hour from what i can gather that means setting up a cron job, i have had a look in cpanel at them but to be honest it looks like an alien language to me. What do i put into the box to make the script run on the hour every hour? thanks dwayne. Quote
TCH-Bruce Posted March 27, 2006 Posted March 27, 2006 The easiest way to set up a cron job is to use the standard setup under Cron Jobs in cPanel. Enter the full path of the command to be run in the box provided and select the other options as shown in the attached image. Quote
dwayne dibbly Posted March 27, 2006 Author Posted March 27, 2006 The easiest way to set up a cron job is to use the standard setup under Cron Jobs in cPanel. Enter the full path of the command to be run in the box provided and select the other options as shown in the attached image. I did that bit but what do i put into the 'your command here' part all i want to do is call a php file >/home/your-cpanel-id/public_html/photo/mobileproc.php thats what it is and where it is do i just put that in it? thanks dwayne.. Edit: TCH-Bruce - edited user identifiable information. Please don't post your user ID in the forums. Quote
TCH-Bruce Posted March 27, 2006 Posted March 27, 2006 Since you are wanting to run a PHP process you have to tell it where to load PHP from. Use the following: >/usr/bin/php -q /home/your-cpanel-id/public_html/photo/mobileproc.php That should do it. Quote
dwayne dibbly Posted March 27, 2006 Author Posted March 27, 2006 Since you are wanting to run a PHP process you have to tell it where to load PHP from. Use the following: >/usr/bin/php -q /home/your-cpanel-id/public_html/photo/mobileproc.php That should do it. Thanks very much for your help and patience it is very much appreciated dwayne... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.