#1  
Old 22nd December 2009, 03:40
autogun autogun is offline
Member
 
Join Date: Sep 2009
Posts: 69
Thanks: 9
Thanked 5 Times in 5 Posts
Default Cron job question

Hello,

A client of mine is using ISPconfig's hosting control panel and trying to setup a cron job using "Sites > Cron jobs".

Cron job looks like this -
Code:
*/5 * * * * php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log
The problem is, the "test.log" file is being created empty -
Code:
-rw-r--r-- 1 web4     client2      0 2009-12-22 04:35 test.log
The right output should be -
Code:
2009-12-21 04:35:49: start...
2009-12-21 04:36:34: done...
Can somebody suggest why this is not working?

Thanks in advance!
Reply With Quote
Sponsored Links
  #2  
Old 22nd December 2009, 09:20
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

I guess the php interpreter is not found on your system. Use the full path to php in your command like:

/usr/bin/php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
autogun (22nd December 2009)
  #3  
Old 22nd December 2009, 11:54
autogun autogun is offline
Member
 
Join Date: Sep 2009
Posts: 69
Thanks: 9
Thanked 5 Times in 5 Posts
 
Default

Quote:
Originally Posted by till View Post
I guess the php interpreter is not found on your system. Use the full path to php in your command like:

/usr/bin/php -f /var/www/domain.com/tmp/application/cron.php > /var/www/domain.com/tmp/test.log
You nailed it Till,
Thanks you!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a Cron job for ISPconfig AngelDrago HOWTO-Related Questions 1 13th January 2009 14:30
Cron Job Question bschultz Programming/Scripts 4 18th September 2008 16:21
Cron job failure report torusturtle General 5 18th July 2008 14:13
wget cron job bschultz Programming/Scripts 9 12th September 2007 18:53
cron job modified after upgrading V 2.2.5 jfruano Installation/Configuration 1 21st July 2006 12:31


All times are GMT +2. The time now is 11:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.