Tuesday, January 18, 2011

CentOS | crontab editor

Just got my new xen image from Stacklet.org. Everything goes fine except when I try to add some cron activity, something strange appear :

bash# crontab -e
no crontab for root - using an empty one
/bin/sh: /bin/vi: No such file or directory
crontab: "/bin/vi" exited with status 127


what? no vi with a defautl install ? hmm.. I wonder why they strip off the vi editor. Never mind. Googling around and I found some work around to make this happen.

Put a file in your ~.

bash# touch ~/.bashrc

add with your prefered editor.

export VISUAL=nano

refresh


bash# source ~/.bashrc

1 comments:

Lindasy Rosenwald said...

Nice blogging, My review is very good example.
Lindsay Rosenwald http://www.lindsayrosenwald.info/ Dr. Lindsay Rosenwald is one of the re-known venture capitalists and the hedge fund managers in the world.