November 22, 2011

Crontab: premature EOF

If you get crontab error like this:

$ crontab -e
no crontab for flexman - using an empty one
crontab: installing new crontab
"/tmp/crontab.XXXXyiIUqY":1: premature EOF
errors in crontab file, can't install.
Do you want to retry the same edit? n
crontab: edits left in /tmp/crontab.XXXXyiIUqY

you cannt solve using crontab -e "userid" but you need to enter the carriage return at the end of the line.
cron is actually looking for end of the line after each cron.

Small things took me 10mins to identify the issue


  1. blogwalking sambil ajak tukerann link, ini blog nya . terima kasih sebelumnya

  2. Very informative, keep posting such good articles, it really helps to know about things.

  3. I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job! In my free time, I like play game: What about you?

  4. I was working and suddenly I visits your site frequently and recommended it to me to read also. The writing style is superior and the content is relevant. Thanks for the insight you provide the readers!

  5. You need entertainment. Refer to our website. hope you get the most comfortable

  6. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.