Friday, May 18th

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Cpanel Cron Job Command questionH
(1 viewing) (1) Guest
Got a Joomla problem? Post as much detail about it as you can here to see if you can get a solution.

Where possible, include URL for the site or page having issues, what version of Joomla you're using, what type of server (eg Cpanel, WAMP, IIS), what components may be installed, and specific error messages you're encountering.

If you think your problem is particularly obscure, you might be better posting it to the forums at joomla.org as there's thousands more people to help you.
  • Page:
  • 1

TOPIC: Cpanel Cron Job Command questionH

Cpanel Cron Job Command questionH 2 months, 3 weeks ago #5792

Hi all,

we are doing our first cron job and just need a little bit of guidance.

We have the php file containing the script that we want to run.
We want it to run every 5 days

We have put the file (cron_example.php) into the home directory.

From the research that we have done we need to add the following into the command line?
/usr/local/bin/php -f /home/insert-username/cron_example.php

the "-f" runs the cron_example script I believe??
We had to put the path to the php on our site "/usr/local/bin/php"
and the path to the script "/home/insert-username/cron_example.php"

Is this all correct?

Also to make it run every 5 days, is it correct to put:

"*/5" in the "days" input box?

Cheers,

look forward to catching up tonight.

Re: Cpanel Cron Job Command questionH 2 months, 3 weeks ago #5794

  • MaxTech
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Karma: 2
Hi Chris,

You want to do something like:

0 0 */5 * * (every fifth day, allowing every day of the week and running every month).
php -q /home/insert-username/cron_example.php

Hope that helps.

Max
edit: every fifth day is */5
Last Edit: 2 months, 3 weeks ago by MaxTech.
  • Page:
  • 1
Moderators: Partic
Time to create page: 0.34 seconds
You are here: Forum