Cron Jobs help

Status
Not open for further replies.

thund33r

New Member
Messages
6
Reaction score
0
Points
0
I'm having a lot of difficulties with setting up my cron jobs, I tried lots of different commands but none seems to work, please help

I have a working php file, if i go to website/ct.php it runs & email(php function is to send email..) is delivered, but however it doesnt work with cron jobs.

I tried lots of different commands i searched over the forum but they just don't work... HELP
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Cut and paste here the exact commandyour chron job is running (go to Cpanel -> cron jobs -> etc )

Then we can try to help.
 

zen-r

Active Member
Messages
1,937
Reaction score
3
Points
38
Cut and paste here the exact commandyour chron job is running (go to Cpanel -> cron jobs -> etc )

Then we can try to help.


@ descalzo - Great!

So despite my last post, not only has thund33r got a duplicate thread running, but now you've decided to make duplicate posts in both of them.

Hey, why don't we just fill up the forum with hundreds of these things?

Alternatively, can a Mod please close or delete this thread?
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
@ descalzo - Great!

So despite my last post, not only has thund33r got a duplicate thread running, but now you've decided to make duplicate posts in both of them.

Hey, why don't we just fill up the forum with hundreds of these things?

Banned for not noticing I had deleted my response in the other thread. :biggrin:
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Try:

Code:
* 5 * * * * "/usr/bin/php -q  /home/thund33r/public_html/ct.php"

1. You should supply full path to program (php)
2. You should quote the entire command.
3. ct.php should not be in public_html ... it allows someone to run it from the web.
 
Last edited:

thund33r

New Member
Messages
6
Reaction score
0
Points
0
Tnx for help I'l try now...
Edit:
Still not working...
Edit:
There's one more thing: I dont get the email everay time the cron is executed, shouldnt I get it if there is any error?
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
/usr/local/bin/php -q /home/thund33r/public_html/ct.php

Not quoted, just worked for me.
Edit:
There's one more thing: I dont get the email everay time the cron is executed, shouldnt I get it if there is any error?

Yes you should. Make sure the e-mail entered is correct.
 
Last edited:

thund33r

New Member
Messages
6
Reaction score
0
Points
0
Nothing... no email from script & no response mail... i double checked everyething... it has to be something else...
 
Status
Not open for further replies.
Top