You are not logged in.

#1 2009-10-15 17:54:53

Del Pede
Member
Registered: 2007-11-13
Posts: 27

using nano instead of vi with crontab

This is doing my head in.
How do i change crontab to use nano instead of vi, when i do crontab -e?

I've changed my .bashrc and /etc/bash.bashrc to have "export EDITOR=/usr/bin/nano" in them, and echo $EDITOR tells me, that nano is the default editor. Still crontab uses vi.

I'd really love to be able to use nano instead.

Thanks
Del Pede

Offline

#2 2009-10-15 18:28:19

grawity
Member
From: Lithuania
Registered: 2009-10-15
Posts: 7
Website

Re: using nano instead of vi with crontab

It seems that crontab uses $VISUAL instead of $EDITOR.

You might want to add this line to bashrc:

export VISUAL=$EDITOR

Offline

#3 2009-10-15 18:52:08

Del Pede
Member
Registered: 2007-11-13
Posts: 27

Re: using nano instead of vi with crontab

grawity wrote:

It seems that crontab uses $VISUAL instead of $EDITOR.

You might want to add this line to bashrc:

export VISUAL=$EDITOR

Absolute Golden. That did it. Thanks alot

Offline

#4 2009-10-21 12:30:07

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818
Website

Re: using nano instead of vi with crontab

Just what I've been looking. Thanks.


what goes up must come down

Offline

Board footer

Powered by FluxBB