Volker Kuhlmann wrote:
On Sat 10 Mar 2007 09:19:24 NZDT +1300, Nick Rout wrote:

crontab -e inherits the EDITOR variable from your environment. If you want to use a different editor, do something like:

EDITOR=/usr/bin/nano crontab -e

Actually, no. That's what it should be doing because it starts an editor
to modify a file, but it doesn't. It uses VISUAL, which is the program
used to display a read-only file. The reason for crontab using VISUAL
instead of EDITOR must be somewhere in the mist of unix time.

Volker

Just to confuse everyone morw, from man crontab:

The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified crontab will be installed automati-
      cally.

Reply via email to