I had an interested problem the other day with crontab that I had never experienced before. When attempting to save the changes I had made to my crontab, I received the following error message:
“/tmp/crontab.XXXXXX.crontab”:1: bad minute errors in crontab file, can’t install. Do you want to retry the same edit?
The solution was to change my default text editor from vim to vi:
# export TERM=vi # crontab -e
Based on an online search, this appears to be related to a newline issue probably due to my configuration changes to vim.
© 2010, Steve Flanders. All rights reserved.