Jump to content

Recommended Posts

Posted

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.

Posted

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.

cronjob.jpg

Posted
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.

Posted

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.

Posted
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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...