Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 1st, 2003, 12:59 AM
climber climber is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Singapore
Posts: 31 climber User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Help with cron

I am running a cron job where i need my php scripts to update my crontab file. But after updating the file i cant execute the crontab command from php. I need to do this otherwise the cron will still be running the old contents of the file. I've tried using system(), shell_exec(), exec() but they don't seem to work. Nothing happens, the old crontab is still running. I know system() works because i've done system(ping www.....com) and it works. Hope someone can help!

Reply With Quote
  #2  
Old October 19th, 2003, 01:03 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Help with cron

Are you specifying the full path to crontab? (/usr/bin/crontab) and the full path to your cron file?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Help with cron


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 4 hosted by Hostway