🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #1083

Re: Upgraded Emacs, can't change crontab

#1083
From: stan
Date: Sun, 10 Mar 2002 14:48
51 lines
3009 bytes
This seems odd. Just a suggestion.  Try execing bash first (exec bash),
then setting EDITOR to the PATH of the new emacs and make sure EDITOR is
not pointing to a symbolic link. While symbolic links should be totally
transparent to a process that opens a file I have run into problems with
apache where replacing a symbolic link with the actual target fixed my
problems (and yes it should not work this way). 

The other option if this is your own system is to login as root and
change directory to /var/spool/cron.  You can always create/edit your
crontab file as root (name it according to your user id); the crontab
command is a convenience so to get around the directory permissions for
/var/spool/cron.

Stan

Adam wrote:
> 
> I'm running Mandrake 8.1, which came with Emacs 20.7. I'm not familiar with
> vi, so I put these lines in my normal .bashrc and my root .bashrc:
> 
> # default editor, e.g. for crontab
> EDITOR='/usr/bin/emacs'
> export EDITOR
> 
> That worked; crontab -e used to bring up Emacs and modify the crontab. A
> few days ago I upgraded to Emacs 21.1.1. I changed /usr/bin/emacs to point
> to the new version and my scripts that use it work correctly.
> 
> But crontab no longer works correctly:
> 
> /home/adam $ crontab -e
>   (over in the Emacs window: made changes, C-x C-s C-x C-c)
> crontab: no changes made to crontab
> /home/adam $
> 
> Interestly crontab -l worked and crontab -r worked, so I now have an empty
> crontab, which I can't change:
> 
> /home/adam $ crontab -e
> no crontab for adam - using an empty one
>   (over in the Emacs window: made changes, C-x C-s C-x C-c)
> crontab: no changes made to crontab
> /home/adam $
> 
> The cron daemon is still working correctly, since root's cron jobs are
> still running correctly.
> 
> Any ideas?
> 
> Thanks
> Adam
Technical Details
Message-ID: <3C8B729D.203E84D2@mlynarczyk.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14eed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail
References: <62Ei8.1728$qm4.13514775@news-text.cableinet.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 100c5f,478a7f05d8b5e4e7
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 103b8b,478a7f05d8b5e4e7
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 2002-03-10 06:48:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14eed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail
Message-ID: <3C8B729D.203E84D2@mlynarczyk.net>
From: stan <stan@mlynarczyk.net>
X-Mailer: Mozilla 4.76 [en]C-AIT  (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: alt.linux,gnu.emacs.help
Subject: Re: Upgraded Emacs, can't change crontab
References: <62Ei8.1728$qm4.13514775@news-text.cableinet.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 51
NNTP-Posting-Host: 12.250.191.51
X-Complaints-To: abuse@attbi.com
X-Trace: rwcrnsc51.ops.asp.att.net 1015771738 12.250.191.51 (Sun, 10 Mar 2002 14:48:58 GMT)
NNTP-Posting-Date: Sun, 10 Mar 2002 14:48:58 GMT
Organization: AT&T Broadband
Date: Sun, 10 Mar 2002 14:48:58 GMT