Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how i can make that every thing i put it in crontab is working? is there any logs for cron to see whether if worked successfully or not?

share|improve this question

There should be a log file here:


or similar.

share|improve this answer

If your scheduled commands provide some output your can add something like

> /home/your_user/log_dir/command.log at the end of your cron job entry.

Hope this helps.

share|improve this answer

Hey, you can add a line saying:

You will receive a mail then, when your cronjob gets executed.

share|improve this answer
Assuming a properly formatted email address (that is correct, etc.) – Dennis Williamson Dec 3 '09 at 12:28

if you on a nix box, you can add the line after the cron;

  • 5 * * * /root/ | mail -s 'subjecthere'

works well...

share|improve this answer
Script output is mailed to the owner of the crontab by default. It is not necessary to pipe it to mail. If you want to specify one or more other recipients you set the MAILTO variable. See man 5 crontab – Dennis Williamson Dec 3 '09 at 12:27

Your Answer


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.