We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,390 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Ubuntu 10.04 crontab issue

My crontab states:

PATH=/var/www
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?

3
Contributors
3
Replies
1 Week
Discussion Span
7 Months Ago
Last Updated
6
Views
mmcdonald
Junior Poster in Training
92 posts since Sep 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

My first guess would be permissions on the files.

CimmerianX
Posting Pro
502 posts since Jul 2010
Reputation Points: 49
Solved Threads: 60
Skill Endorsements: 10

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

mmcdonald
Junior Poster in Training
92 posts since Sep 2012
Reputation Points: 0
Solved Threads: 1
Skill Endorsements: 0

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?

ammonsutherland
Newbie Poster
5 posts since Oct 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0597 seconds using 2.63MB