Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Reply-To: Uwe Mayer X-Priority: 3 (Normal) Message-ID: <12745970241.20021007230153@planet-interkom.de> To: cygwin AT cygwin DOT com, Igor Pechtchanski CC: Uwe Mayer , cygwin AT cygwin DOT com Subject: Re[2]: crontab: no changes made In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ~. 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/