Why crontab -e doesn't use the correct editor?
Peng Yu
pengyu.ut at gmail.com
Fri Nov 11 22:02:29 UTC 2011
On Fri, Nov 11, 2011 at 11:29 AM, Colin Law <clanlaw at googlemail.com> wrote:
> On 11 November 2011 16:59, Peng Yu <pengyu.ut at gmail.com> wrote:
>> Hi,
>>
>> ~$ echo $EDITOR
>>
>> ~$ echo $VISUAL
>>
>> ~$ ll /usr/bin/editor
>> lrwxrwxrwx 1 root root 24 2010-05-14 17:23 /usr/bin/editor ->
>> /etc/alternatives/editor
>> pengy at pengy-desktop:~$ readlink -f -e /usr/bin/editor
>> /usr/bin/vim.gnome
>>
>> I have the above environment. But when I call run "crontab -e". nano
>> is invoked. I think that vim.genome should be called. I'm wondering
>> why the correct one is not called?
>
> Just to check, if you run /usr/bin/editor does it run vim?
I tried it, yes. See also
~$ readlink -f -e /usr/bin/editor
/usr/bin/vim.gnome
--
Regards,
Peng
More information about the ubuntu-users
mailing list