Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #273068

Re: unwanted crontab message

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: unwanted crontab message
Date 2024-09-14 00:50 +0200
Message-ID <JmngZ-c4IA-7@gated-at.bofh.it> (permalink)
References <JmmkV-c47r-1@gated-at.bofh.it> <JmmuB-c4du-11@gated-at.bofh.it> <JmmNX-c4za-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Sat, Sep 14, 2024 at 06:12:02AM +0800, Marcus Park wrote:
> either $EDITOR or $VISUAL in my system is empty.
> 
> And /usr/bin/editor points to nano.

Well, I do not really understand what is going on then as you are
definitely running an editor that looks at vim config files, and
nano won't do that.

I assume you are looking at the environment of the same user that is
executing "crontab -e"?

When the editor from "crontab -e" is running, you could go into
another terminal and look at all your processes to see which actual
binary is being called. IIRC, vim when invoked as vi, acts in vi
compat mode and that may be why it can't parse its own system
config. Although still it is a mystery to me why you do not get
nano.

I just ran crontab -e as a fresh user and it actually invoked
/usr/bin/sensible-editor and asked me which editor I wanted to use
(now and in future). So perhaps the man page for crontab is out of
date. It seems that sensible-editor records this choice in
~/.selected_editor. Is this what got called for you? If so,
apparently running "select-editor" will change the choice.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

unwanted crontab message Marcus Park <marp@privatembox.com> - 2024-09-13 23:50 +0200
  Re: unwanted crontab message Andy Smith <andy@strugglers.net> - 2024-09-14 00:00 +0200
    Re: unwanted crontab message Marcus Park <marp@privatembox.com> - 2024-09-14 00:20 +0200
      Re: unwanted crontab message Will Mengarini <seldon@eskimo.com> - 2024-09-14 00:50 +0200
        Re: unwanted crontab message Will Mengarini <seldon@eskimo.com> - 2024-09-14 01:00 +0200
      Re: unwanted crontab message Andy Smith <andy@strugglers.net> - 2024-09-14 00:50 +0200
        Re: unwanted crontab message Greg Wooledge <greg@wooledge.org> - 2024-09-14 03:00 +0200
  Re: unwanted crontab message Greg Wooledge <greg@wooledge.org> - 2024-09-14 00:00 +0200
    Re: unwanted crontab message Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-09-14 10:50 +0200

csiph-web