Crontab problems

Raphael raphael@oninet.pt
Sat Sep 14 03:01:00 GMT 2002


On Wed, Sep 11, 2002 at 05:53:24PM -0400, Igor Pechtchanski wrote:
> On Wed, 11 Sep 2002, Nicholas Wourms wrote:
> 
> > --- Raphael <raphael@oninet.pt> 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?

Kind regards

Raphael.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020914/422ec80e/attachment.sig>


More information about the Cygwin mailing list