Jump to content

Recommended Posts

Posted

Hi,

 

I just want to run a cronjob that can update a table of mine. Would i do this in a bash script or a php file?

 

At "Command to run" do i just do

 

./scriptName?

 

I could use some tips here lol.

 

Thanks,

Posted
Create your php file and place it somewhere within you account.

 

When creating the cron job in cPanel enter the command to run such as this.

 

>/usr/bin/php -q /home/your-TCH-username/path-to-script

 

Movie tutorial How to create a Cron job.

 

Thanks, I googled an answer before seeing the reply to this (I didnt get any email notification even though it is enabled for the thread :) ). What I googled looks similar to your answer though.

 

>php -q /home/username/public_html/scriptname > /dev/null

 

Thanks :tchrocks:

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