Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st February 2011, 22:46
ph-tvs ph-tvs is offline
Junior Member
 
Join Date: Feb 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig cronjob not working why?

Hi,

I have a problem to get a cronjob working within ISPConfig.

this is the code that I put in the cronjob :

sh /var/www/mydomain.nl/web/sat/getimage.sh

But the cronjob isnt doing anything.

When I log into the server by putty (ssh) and typing that exactly command, it works fine.

Also tried to remove the sh from the line so that the code is:
/var/www/scripts.ph-tvs.nl/web/sat/getimage.sh
it is not working.

I know that cronjobs are working in ISPConfig because I have another cronbjob in ISPConfig that is working fine. But that is an url cronjob.
http://www.mywebsite/cron.php <- working fine.
Client has full cron in the client options menu.

Can someone please explain to me why it isnt working in ISPConfig and why it is working fine by ssh?

The cron log file contains no of errors for this cronjob.

Thanks in advance!



Theo
Reply With Quote
Sponsored Links
  #2  
Old 22nd February 2011, 16:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

ISPConfig 2 or 3?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 22nd February 2011, 17:03
ph-tvs ph-tvs is offline
Junior Member
 
Join Date: Feb 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ISPConfig version 3

Im sorry for posting this in the wrong forum
Reply With Quote
  #4  
Old 22nd February 2011, 18:29
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,483
Thanks: 835
Thanked 5,524 Times in 4,345 Posts
 
Default

In Linux cronjobs, every command has to be called with its full path as cron does not read the $PATH variable that is sued on the shell. So instead of sh, you have to use

/bin/sh /var/www/mydomain.nl/web/sat/getimage.sh

or if the file contains already #!/bin/sh in the first line, then use just:

/var/www/mydomain.nl/web/sat/getimage.sh
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 12:24
The autoresponse is not working with ISPConfig 3.0.1.4 voltron81 Installation/Configuration 4 13th October 2009 14:03
cronjob not working vogelor General 1 9th October 2009 13:05
ISPConfig 3.0.1 released till General 36 29th March 2009 15:30
Working through the ISPConfig source code catdude General 1 25th August 2007 09:38


All times are GMT +2. The time now is 16:10.


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