None of my Cronjobs are working :(

Bigzed

Registered
Feb 19, 2005
3
0
151
Hi Guys,
I've tryed the following ways to start my Cronjob: (Commands)
/home/public_html/getdata.php?cron=yes
/public_html/getdata.php?cron=yes
http://www.fullpath.com/morpheus/getdata.php?cron=yes
php -q /public_html/getdata.php?cron=yes
php -q /home/morpheus/public_html/getdata.php?cron=yes

What Is the Problem? Don't move the Thread in the Cpanel Beginners Forum - nobody in there helps.

Thank you,
Bigzed.
 

DigitalN

Well-Known Member
Sep 23, 2004
419
1
168
Try

0 0 * * * /usr/bin/php -q /home/morpheus/public_html/getdata.php?cron=yes

To run the job at midnight daily.

From command line, does this actually do anything or provide the error for you?

# /usr/bin/php -q /home/morpheus/public_html/getdata.php?cron=yes

Does

www.domain.com/getdata.php?cron=yes actually do what it is intended to do?

What isn't working, do you get an error from when the cron job runs?

Add the email address into the cron job file, to send the resut to you - In cpanel or directly into the cron file via (add this to the top of the file)

# crontab -e -u $user

MAILTO="[email protected]"
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
Bigzed said:
Don't move the Thread in the Cpanel Beginners Forum - nobody in there helps.

Thank you,
Bigzed.
No offence, but you did/were getting help in that thread. :)

And on that note, when a thread is moved it is done for a reason, please do not open a second one as from this point on they will be closed if done so.

Also note clients of hosting companies having questions should be using their provider for support as it is the hosting companies responsibility to supply support to their clients.