crontab -e has a problem
1 Attachment(s)
"crontab -e" has a problem.
My box is centos 5.4 x86, and I want to add one line of backup command to crontab. I added this command to crontab. Quote:
Quote:
So, I tried "crontab -e", then this screen I attached came. -- the screen can be found here also. --- http://img43.imageshack.us/img43/982...07crontabe.png At "crontab -l", I got this message. "no crontab for root" What is wrong? |
Quote:
Quote:
|
Quote:
Your advice soved "crontab -e" problem. However there are another problem. At "/var/log/cron", there is this line. "Mar 7 17:37:01 www crond[7813]: (root) CMD (/root/backup.sh)" But, I could not find out any backup files from "/root/backup.sh". |
Quote:
|
Quote:
|
You don't have to 'crontab -e' to see "/root/backup.sh", just 'crontab -l'. Now. What's this backup script supposed to do?
|
First make sure the script works from the command prompt.
Then make sure to use the whole path to all commands and files in the script, since cron has a limited path. |
Quote:
|
Quote:
Quote:
|
If there is a problem with the script, root should receive a mail.
Did you added the path to all the commands and files in the script? |
Quote:
I couldn't install senmail, so I couldn't receive a mail. But there are "log" commands at each functions. My question is even though crontab has backup script, but I could not find out any logs. |
Did you added the path to all the commands and files in the script?
|
Quote:
Quote:
|
All times are GMT -5. The time now is 07:17 PM. |