Problem with crontab(redhat)

$ crontab -e

no crontab for yosssi - using an empty one

/bin/sh: line 1: /bin/vi: No such file or directory

crontab: "/bin/vi" exited with status 127

Thanks for your help.

4 Replies

You don't have vi installed, or it couldn't be found.

Try whereis vi to see if you need to install it.

Bye.

or set the EDITOR environment variable to the name of the text editor you want to use instead. i prefer vim.

for example:

export EDITOR=nano

/me looks at his pico and the nano….. I really must upgrade someday.

-Ashen

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct