delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/07/16:57:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 7 Oct 2002 23:01:53 +0200
From: Uwe Mayer <merkosh AT planet-interkom DOT de>
Reply-To: Uwe Mayer <merkosh AT planet-interkom DOT de>
X-Priority: 3 (Normal)
Message-ID: <12745970241.20021007230153@planet-interkom.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
Subject: Re[2]: crontab: no changes made
In-Reply-To: <Pine.GSO.4.44.0210062139410.10765-100000@slinky.cs.nyu.edu>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0210062139410 DOT 10765-100000 AT slinky DOT cs DOT nyu DOT edu>
MIME-Version: 1.0

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 AT M111 /tmp
$ ls -i 
1129733 crontab.2072

Then I saved the file from emacs:

merkosh AT M111 /tmp
$ ls -i 
 868475 crontab.2072  1129733 crontab.2072~

Then I quit emacs, not saveing again:

merkosh AT 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 AT planet-interkom DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019