Re: Can't edit crontab

2012-02-16 Thread Emlio
On 02/16/2012 12:40 PM, Emlio wrote: Hi all I'm using cygwin in order to use cron under an XP machine. When I run the command $ crontab -e I get a vi (vim?) editor, but I'm not able to use it propertly. After pressing insert the keyboard doesn't work properly. For example, if I press the

RE: Can't edit crontab

2012-02-16 Thread Adam Dinwoodie
On 16 February 2012 at 11:40, Emlio wrote: I've tried to set the env variable EDITOR as nano, in order to use this editor instead, but the trick doesn't seem to work in cygwin. This works fine for me. Are you sure you have nano installed? What's the result of running `which nano`? -- Adam

Re: Can't edit crontab

2012-02-16 Thread Emlio
On 02/16/2012 01:14 PM, Adam Dinwoodie wrote: On 16 February 2012 at 11:40, Emlio wrote: I've tried to set the env variable EDITOR as nano, in order to use this editor instead, but the trick doesn't seem to work in cygwin. This works fine for me. Are you sure you have nano installed? What's

Re: Can't edit crontab

2012-02-16 Thread Earnie Boyd
On Thu, Feb 16, 2012 at 7:24 AM, Emlio wrote: The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. set | grep -i vi Does the output of the above command give a clue? --

Re: Can't edit crontab

2012-02-16 Thread Andrey Repin
Greetings, Emlio! The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. $ EDITOR=nano crontab -e ? -- WBR, Andrey Repin (anrdae...@freemail.ru) 16.02.2012, 17:54 Sorry for

Re: Can't edit crontab

2012-02-16 Thread Emlio
On 02/16/2012 02:58 PM, Andrey Repin wrote: Greetings, Emlio! The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. $ EDITOR=nano crontab -e ? -- WBR, Andrey Repin

Re: Can't edit crontab

2012-02-16 Thread Emlio
On 02/16/2012 02:41 PM, Earnie Boyd wrote: On Thu, Feb 16, 2012 at 7:24 AM, Emlio wrote: The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. set | grep -i vi Does the output of

Re: Can't edit crontab

2012-02-16 Thread Gary Johnson
On 2012-02-16, Emlio wrote: On 02/16/2012 02:58 PM, Andrey Repin wrote: Greetings, Emlio! The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. You may need to export EDITOR as

Re: Can't edit crontab

2012-02-16 Thread Gary Johnson
On 2012-02-16, Emlio wrote: Hi all I'm using cygwin in order to use cron under an XP machine. When I run the command $ crontab -e I get a vi (vim?) editor, but I'm not able to use it propertly. After pressing insert the keyboard doesn't work properly. For example, if I press the

Re: Can't edit crontab

2012-02-16 Thread Andrey Repin
Greetings, Emlio! The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. $ EDITOR=nano crontab -e ? Yep, this worked! I had tried similar stuff with pipelines (yes, it's

Re: Can't edit crontab

2012-02-16 Thread Emlio
On 02/16/2012 10:26 PM, Andrey Repin wrote: Greetings, Emlio! The way I set the EDITOR var to nano is: $ EDITOR=nano; And if i type EDITOR nano editor is opened. But when I run crontab -e I get the crontab edited by vi(m) again. $ EDITOR=nano crontab -e ? Yep, this worked! I had tried