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.

I have this simple task scheduled in cron but it wont happen, the commands I used are

crontab -e

than added the following line

16 * * * * echo "task working"

But the command isnt runnig every 16th minute in every hour.. help plz

share|improve this question
Do you want "task working" echoed in terminal? I don't think it's gonna happen. Run grep "task working" /var/log/auth.log, probably it's there. You can also run grep CRON /var/log/auth.log to get cron's execution log. –  Eric Carvalho Jun 20 '13 at 17:26
Or grep CRON /var/log/syslog and you'll see the cron commands being executed at the 16th minute of every hour. If you want to see some output, you can edit your cronjob to be echo "task working" >> /home/yourUsername/test. This will add (append) those words to a new line in the file test at the specified time. So, doing this, and Eric's comment, do you see the cronjobs executing? –  Alaa Jun 20 '13 at 18:01
Yes... I can see that. thanks.. so if I want to execute a program I follow the similar rule.. just mention the programs path.? –  Tamim Ad Dari Jun 20 '13 at 18:27
Your current setup will "echo" "task working" to stdout in the Cron environment - of which you won't notice a thing. So this is pretty useless and will make it seem as if it is not working. –  gertvdijk Jun 20 '13 at 18:49
There is lots of information on cron here. One way to check its working would be to send output to a file. For example echo "Daily task completed : $(date)" >> /tmp/mybackup.log –  Warren Hill Jun 20 '13 at 19:58
add comment

Your Answer


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

Browse other questions tagged or ask your own question.