howto change cron default editor

If you need some help, this should be the first place to look.

Postby dingetje » Mon Jan 14, 2002 6:27 am

For people that don't like to use vi as the editor of choice for editing crontab entries (crontab -e), here's a howto to change the default editor:<p>In a console *before* using crontab -e command type:<p>export VISUAL=<editorname><p>examples:<p>export VISUAL=edit<p>export VISUAL=e3<p>To make the change permanent add this line in /etc/profile (and then copy /etc/profile to /mnt/router/etc to survive a reboot).<p>Hope this helps!
dingetje
 

Postby Duff » Mon Jan 14, 2002 6:34 pm

works great, Thanks
User avatar
Duff
Newbie
 
Posts: 5
Joined: Tue Dec 18, 2001 10:12 pm

Postby Duff » Mon Jan 14, 2002 6:40 pm

when I go to /mnt/router/etc there is no profile file, is that normal? just copy the profile from /etc to there?
User avatar
Duff
Newbie
 
Posts: 5
Joined: Tue Dec 18, 2001 10:12 pm

Postby flee » Tue Jan 15, 2002 2:13 am

that's correct duff!!<p>flee
flee
 


Return to FAQ - Frequently Asked Questions

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron