cron jobs

Status
Not open for further replies.

joaquim.a.marques62

New Member
Messages
5
Reaction score
0
Points
0
can\'t get my cron job running. Is the crontab service running?
*/15 * 1-6 * * /usr/bin/php /home/amarqujo/public_html/bolsa/rt.php
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
/usr/bin/php /home/amarqujo/public_html/bolsa/rt.php  >>/home/amarqujo/public_html/bolsa/cronlog.txt 2>&1

That will log any error messages into cronlog.txt.

Depending what the script does, you can test it by temporarily setting it to go off every 5 minutes and then checking the log file. You can also place "echo" commands to output debugging information.
 

joaquim.a.marques62

New Member
Messages
5
Reaction score
0
Points
0
I tried many ways, including output the results to txt like your example. The question is that nothing happens. the ouput file is just not being generated. the cron job is not being executed. looks like the crontab service is just not running.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Just checked, and the cron daemon is running on your server, Boru.

Try misspelling the script name, that should produce something in the error log.
 

joaquim.a.marques62

New Member
Messages
5
Reaction score
0
Points
0
Your are the man. After mispelling the script name I found that cron is running. After digging a bit the problem was the scrip with perms 750. After changed to 755 is running just fine. Thanks a lot. CU.
 
Status
Not open for further replies.
Top