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

Quote:
Originally Posted by n47 View Post
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 ...



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.
Problem solved, I rename /etc/back-res.sh with /etc/back-res and I replace cron task 10 12 * * 1 /ect/back-res.sh 1>/dev/null 2>/dev/null with 10 12 * * 1 /ect/back-res 1>/dev/null 2>/dev/null
Reply With Quote