View Single Post
  #154  
Old 5th March 2012, 13:22
n47 n47 is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

Thank you for your script. It's working perfectly but I have a problem when I try to launch the script with CRON.

Actually, if I run manually the script with this command

Code:
/etc/back-res.sh
The script back up my datas. But if Cron launchs the script, nothing happens... I tried to see if there is errors in cron.log but I don't see them ...

Quote:
Mar 5 12:09:01 azur /USR/SBIN/CRON[15470]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete)
Mar 5 12:09:01 azur /USR/SBIN/CRON[15469]: (root) CMD (/usr/bin/php -q /var/www/clients/client1/web1/web/periodic/cron.php)
Mar 5 12:10:01 azur /USR/SBIN/CRON[15493]: (root) CMD (/ect/back-res.sh 1>/dev/null 2>/dev/null)
Mar 5 12:10:01 azur /USR/SBIN/CRON[15492]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Mar 5 12:10:01 azur /USR/SBIN/CRON[15494]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Mar 5 12:10:01 azur /USR/SBIN/CRON[15495]: (root) CMD (/usr/bin/php -q /var/www/clients/client1/web1/web/periodic/cron.php)
Cron is working, I do a simple test by creating a file and it's working.

The only crontask which is not working is this one :

10 12 * * 1 /ect/back-res.sh 1>/dev/null 2>/dev/null

Do you have an idea ?

Thank you.
Reply With Quote