Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example I want to schedule task using crontab:

*/2 * * * * /root/scripts/backup.sh

But nothing happens, backup.sh is not executed. Who can help me?

share|improve this question
add comment

1 Answer

Check /var/log/syslog.

Change your cron line to: */2 * * * * /root/scripts/backup.sh >/tmp/backup.log 2>&1

so that you will get some log in the /tmp/backup.log file.

share|improve this answer
    
I want to ask an question: I need change mod of this script +x? –  Kalick Aug 19 '12 at 17:45
2  
Yes, you need to. –  green7 Aug 19 '12 at 17:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.