delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/06/21:44:51

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 6 Oct 2002 21:44:41 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Uwe Mayer <merkosh AT hadiko DOT de>
cc: cygwin AT cygwin DOT com
Subject: Re: crontab: no changes made
In-Reply-To: <10310089357.20021005142822@hadiko.de>
Message-ID: <Pine.GSO.4.44.0210062139410.10765-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Sat, 5 Oct 2002, Uwe Mayer wrote:

> Hi,
>
> When I start "crontab -e" it won't run, because I haven't vi
> installed. I remembered reading something about an EDITOR or VISIBLE
> environment variable, though I couldn't find it any more. Thus I set

The correct name for the variable is VISUAL, although EDITOR also works.

> 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".
>
> Where's the flaw?
>
> Thanks
> Uwe

Do you use the Cygwin port of emacs, or NT Emacs?  If it's NT Emacs, you
may not be editing the right file, as it doesn't understand Cygwin paths.
Search the archives for an appropriate invocation script that would do the
path translation for you.

If you are running Cygwin emacs, make sure it's writing the file in place.
In a separate shell, check that the inode number of the temp file is the
same before and after emacs has written the changes (using 'ls -i').
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
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