From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26263 invoked by alias); 14 Sep 2002 17:00:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26256 invoked from network); 14 Sep 2002 17:00:23 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 14 Sep 2002 17:00:23 -0000 Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.11.6+Sun/8.11.6) with ESMTP id g8EH0KL02414 for ; Sat, 14 Sep 2002 13:00:22 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Sat, 14 Sep 2002 10:52:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: Crontab problems In-Reply-To: <20020912195735.GC1448@TOOS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00712.txt.bz2 On Thu, 12 Sep 2002, Raphael wrote: > On Wed, Sep 11, 2002 at 05:53:24PM -0400, Igor Pechtchanski wrote: > > On Wed, 11 Sep 2002, Nicholas Wourms wrote: > > > > > --- Raphael wrote: > > > > Hi guys/girls~, > > > > > > > > I'm having a bit of a problem with my windows based editor. Using > > > > it with > > > > Pine or Mutt is not problem. Using it with Crontab -e gives a > > > > sharing > > > > violation error when I want to save the new file. > > > > > > > > Is this a crontab problem? > > > > > > Use vi.exe > > > > Most windows editors adopt a remove-and-recreate (or rename-and-recreate) > > policy. This basically means that they will try to remove or rename the > > crontab-created file (which will fail, silently), and then create that > > file over (which will fail since crontab has it open). This is where your > > sharing violation comes from. > > Ok, I can understand that explenation. > > > I've verified this with notepad and > > editpad, but I'm sure most of the others will behave similarly. Thus, > > looks like using a cygwin-based editor is your only option, unless you can > > find a windows one that writes the files in-place. If this creates one > > more convert for the vi camp, all the better. ;-) > > Don't think so, why should Cron not be able to act like Pine or Mutt. I > guess the latter start opening the file in shared mode? I don't know about mutt, but pine, IIRC, does not keep the file open while it's being edited by an external editor. It re-opens the file afterwards, which is why it doesn't care whether it's the same file, or a newly created one. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! It took the computational power of three Commodore 64s to fly to the moon. It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file -- 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/