Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how change crontab default editer

Status
Not open for further replies.

mingx98

Technical User
Mar 16, 2000
78
CA
in Solaris 2.6, the default editer of crontab is "ed",
but I found other 2.6 box use vi as crontab editer,
I don't how set my Soalris 2.6 crontab editer to "vi",
in /etc/default/cron and /etc/cron.d, I can't find
any clue ,

Thanks ,Please help

[sig][/sig]
 
There are two environment variables that you can use. They are EDITOR and VISUAL. If both are set then VISUAL is used.

eg. in bourne, bash, or ksh:
EDITOR=vi;export EDITOR;

then run crontab with -e option.


Mike. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top