Thread: Cron problems
View Single Post
  #1  
Old 17th June 2013, 08:32
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default Cron problems

Hi there

I setup a few cronjob, e.g.:

one is like that:

Code:
/var/www/clients/client1/web9/web/urteile/cron.sh
and the resulting file in /etc/cron.d looks like this:
Code:
cat ispc_chrooted_web9                                                                                                                                                                                                                              
MAILTO=''                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                               
#SHELL='/usr/sbin/jk_chrootsh'                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                               
10      12,13   *       *       *       web9    /var/www/clients/client1/web9/web/urteile/cron.sh       #regenmacher.ch

However a new one I created looks like this:
Code:
/var/www/clients/client1/web41/web/sr_orig/cron.sh  2>&1 | mail -s "SR Cron" 'user@domain.com'
but the entry in cron.d looks like that:
Code:
cat ispc_chrooted_web41 
MAILTO=''                                                                                                                                                                                                                                                                      
SHELL='/usr/sbin/jk_chrootsh'                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                               
30      7       *       *       *       web41   /web/sr_orig/cron.sh  2>&1 | mail -s "SR Cron" 'user@domain.com' #sub.domain.com
For some reason the web41 is chrooted but I don't recall having set chrooting up for it.
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Sponsored Links