user2394156
user2394156

Reputation: 1840

Crontab not triggered at all

I have the following CRON configuration:

crontab -l
* * * * * curl http://x.com/script.php

But it just doesn't work. The command "curl http://x.com/script.php" triggered manually works all fine so it's obviously something wrong with CRON. What could go wrong?

Upvotes: 0

Views: 124

Answers (1)

Dániel
Dániel

Reputation: 58

From the top of my head, 'curl' is not in the PATH, when cron is trying to execute it. Type its absolute path, or use the PATH variable in the crontab. If that doesn't help, I would check if /usr/sbin/cron is running. If it is, also check permissions of /var/cron/tabs/ and its contents, and check the log file /var/log/cron for any suscpicious errors.

Upvotes: 1

Related Questions