crontab -e does not allow editing of cron
May 13, 2008 3:01 pm Solaris AdminI 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.