UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 19th, 2003, 10:53 AM
Oddish Oddish is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 58 Oddish User rank is Lance Corporal (50 - 100 Reputation Level)Oddish User rank is Lance Corporal (50 - 100 Reputation Level)Oddish User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 57 m 3 sec
Reputation Power: 6
Question crontab not working

I've got this in my crontab file:
Quote:
55 * * * * /home/www/web185/html/test.php
Now, shouldn't this execute "test.php" every hour, for example 17:55, 18:55, 19:55 and so on, or am I doing something wrong?

"test.php" creates a folder named with the current date and time, and when I execute it from the web, it works perfectly, but nothing happens with the crontab.

EDIT: My site is actually on a Linux server, so feel free to move this thread.

Last edited by Oddish : November 19th, 2003 at 10:56 AM.

Reply With Quote
  #2  
Old November 19th, 2003, 12:19 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
does your test.php have a
#!/usr/bin/php
in the first line (check the correct path via "which php") and permission mode 0755?

M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old November 19th, 2003, 01:52 PM
Oddish Oddish is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 58 Oddish User rank is Lance Corporal (50 - 100 Reputation Level)Oddish User rank is Lance Corporal (50 - 100 Reputation Level)Oddish User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 57 m 3 sec
Reputation Power: 6
No, it doesn't have a "shebang" and when I add one like your example it says it's the wrong path or something like that. Strangely enough, "which PHP" returns nothing at all.

Reply With Quote
  #4  
Old November 19th, 2003, 03:03 PM
druuna druuna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 137 druuna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 37 sec
Reputation Power: 0

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > crontab not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT