some cronjobs don't work
Hi!
I wrote a backup script that I want to run with cron. so I did in crontab -e Code:
0 3 * * * /root/scripts/backup-myserver I tested my script: Quote:
I tested my cron daemon: Quote:
So if my script works and if cronjobs work, where is the problem?! |
Is this root's crontab or another user's? If it isn't root's, you probably have a permissions issue since the script is in root's home.
|
Quote:
Quote:
and touch in root directory also works: Quote:
|
Did you receive any error message through the root's mail? The crontab user's mailbox is the standard place where output and error of cron jobs are put, if not redirected elsewhere. Or eventually you can try
Code:
0 3 * * * /root/scripts/backup-myserver > /root/cron.log 2>&1 |
What's in the script? It may be an environment issue
|
Solved! Thanks for your help!
As indicated by colucix, I made a redirection to see what the cronjob had to say. In the logs there was the following error message: Quote:
Quote:
Thanks again for your help! |
All times are GMT -5. The time now is 04:09 PM. |