My crontab states:

00 00 * * * php -q /tasks/script1.php
*/5 * * * * php -q /cycle/script2.php
*/1 * * * * php -q /tasks/script3.php

script 1 doesnt run, but I need to to run every midnight

script 2 doesnt run but works fine when executed manually.

script 3 DOES run perfectly...

makes no sense to me - any ideas?

Recommended Answers

All 3 Replies

My first guess would be permissions on the files.

but if they run manually from any browser? Surely crontab can run them? What permissions do the files need for crontab to successfully execute them?

N.B. Cant be permissions as they all have the same

admitedly, I've never seen anyone use double-zeros in this field before. Can you try it with single 0's in the time fields?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.