This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re[2]: crontab: no changes made
- From: Uwe Mayer <merkosh at planet-interkom dot de>
- To: cygwin at cygwin dot com, Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- Cc: Uwe Mayer <merkosh at hadiko dot de>, cygwin at cygwin dot com
- Date: Mon, 7 Oct 2002 23:01:53 +0200
- Subject: Re[2]: crontab: no changes made
- References: <Pine.GSO.4.44.0210062139410.10765-100000@slinky.cs.nyu.edu>
- Reply-to: Uwe Mayer <merkosh at planet-interkom dot de>
Hallo Igor,
Monday, October 7, 2002, 3:44:41 AM, you wrote:
IP> The correct name for the variable is VISUAL, although EDITOR also works.
I found it again. "man 1 crontab"
>> export EDITOR=emacs
>>
>> Then crontabs starts up emacs, editing a temporary file (i.e.
>> /tmp/cron.1900)
>> However, when I close emacs (with or without saveing changes to the
>> tmp file) crontab displays "crontab: no changes made to crontab".
IP> If you are running Cygwin emacs, make sure it's writing the file in place.
IP> In a separate shell, check that the inode number of the temp file is the
IP> same before and after emacs has written the changes (using 'ls -i').
IP> Igor
I was useing the text-mode version of emacs from Cygwin.
I did that. After exporting VISUAL I called crontab -e and had a look
at the inode:
merkosh@M111 /tmp
$ ls -i
1129733 crontab.2072
Then I saved the file from emacs:
merkosh@M111 /tmp
$ ls -i
868475 crontab.2072 1129733 crontab.2072~
Then I quit emacs, not saveing again:
merkosh@M111 /tmp
$ ls -i
934013 #crontab.2072# 1129733 crontab.2072~
:(
You were right. The original file was renamed to <filename>~.
I'll have to check if I can disable that. I remember reading somewhere
about that.
Thanks very much. That was a good idea.
Ciao
Uwe mailto:merkosh@planet-interkom.de
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/