Crontab going crazy as well

totaltouch

Verified User
Joined
May 17, 2007
Messages
26
Location
Hilversum, The Netherlands
Hi there,

A user on my system was complaining about cron not working. So I started testing things out. Setting cron is done through the DA interface.

Once a user sets a crontab like this everything works
Code:
30 * * * * curl http://www.userdomain.com/test.php

Once a user sets a crontab like this everything works as well
Code:
* 14 * * * curl http://www.userdomain.com/test.php

Once a user sets a crontab like this, directadmin saves, REPLACE message in /var/log, but at the exact time.... nothing
Code:
30 14 * * * curl http://www.userdomain.com/test.php

No error messages, no e-mails, nothing in /var/log.... :confused:
 
Probably should put the full path to curl. Also you can add a line MAILTO="[email protected]" and it should email you any errors or output that occur. If there are no error or output then there is going to be nothing sent to you. Check the cron log to see if the job indeed did run at the time you set. The log should be like /var/log/cron or /var/log/crontab
 
Check to at what time your cron.daily runs, and if the commands therein run.

Jeff
 
Back
Top