Article View: alt.linux
Article #1085Re: Upgraded Emacs, can't change crontab
From: korthals
Date: Sun, 10 Mar 2002 23:13
Date: Sun, 10 Mar 2002 23:13
41 lines
2427 bytes
2427 bytes
In article <62Ei8.1728$qm4.13514775@news-text.cableinet.net>, 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 You could try doing it another way. crontab -l >mycron then edit mycron with emacs and crontab mycron to install it.
Technical Details
Message-ID:
<slrna8nq5b.8fm.korthals@localhost.localdomain>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!typhoon.nyroc.rr.com.POSTED!not-for-mailReferences:
<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 15:13:49 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone.nyroc.rr.com!cyclone-out.nyroc.rr.com!typhoon.nyroc.rr.com.POSTED!not-for-mail Newsgroups: alt.linux,gnu.emacs.help From: korthals@inserttwcny.rr.com Subject: Re: Upgraded Emacs, can't change crontab References: <62Ei8.1728$qm4.13514775@news-text.cableinet.net> Organization: ? Reply-To: korthals@inserttwcny.rr.com Followup-To: alt.linux Message-ID: <slrna8nq5b.8fm.korthals@localhost.localdomain> User-Agent: slrn/0.9.7.3 (Linux) Lines: 41 Date: Sun, 10 Mar 2002 23:13:47 GMT NNTP-Posting-Host: 24.95.179.243 X-Complaints-To: abuse@rr.com X-Trace: typhoon.nyroc.rr.com 1015802027 24.95.179.243 (Sun, 10 Mar 2002 18:13:47 EST) NNTP-Posting-Date: Sun, 10 Mar 2002 18:13:47 EST