"Crontab -e Returns a Number" Problem

I sometimes find on a certain machine that when I change to a bash shell and try to edit the crontab with

# crontab -e

instead of getting my vi editor I just get a number returned, for example:

# crontab -e
3839

Obviously something to do with how the default editor is set in the root csh profile then moving to bash. It is fixed with:

 EDITOR=vi
 export EDITOR
 crontab -e

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>