crontab -e does not allow editing of cron

3:01 pm Solaris Admin

I see this one a fair bit these days, so i thought i would write it up. On most machines when i edit crontab i get the following:

amstel:/ # crontab -e
320

And i have to CTRL-D to get out of it. Note that that 320 can be any number, doesn’t matter. The point is you cannot edit cron.

All you have to do is add this line;

EDITOR=/usr/bin/vi;export EDITOR

To /etc/profile or /.bashrc or /.bash_profile etc.

Leave a Comment

Your comment

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

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.