public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: C Wells <s2audi@yahoo.com>
To: cygwin@cygwin.com
Subject: tail and win file handling
Date: Tue, 18 May 2004 13:36:00 -0000	[thread overview]
Message-ID: <20040518133131.60389.qmail@web60408.mail.yahoo.com> (raw)
In-Reply-To: <20040518131630.GZ12030@cygbert.vinschen.de>

I am sorry if this has been covered before, but I was
wondering if there is work around (probably not ;-(

In unix you can do the following
tail -f /somefile
in another session
rm -f /somefile
echo OK > /somefile

of course the tail stops working, but the file is
recreated

On a cygwin box
tail -f c:/somefile
in another session
rm -f c:/somefile
echo OK > c:/somefile
'Access is denied'

So obviously the tail puts a lock on the file,
preventing an application from creating a new one,
which in my case breaks the application. Any thoughts
about how work around this, given I need to tail the
file ?

Thanks



	
		
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2004-05-18 13:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-17 23:33 binutils 20040312-1 : problem linking 16bit x86 code with ld Brice VIDDEAU
2004-05-18  9:50 ` Corinna Vinschen
2004-05-18 10:04   ` Dave Korn
2004-05-18 13:16   ` Brice VIDDEAU
2004-05-18 13:31     ` Corinna Vinschen
2004-05-18 13:36       ` C Wells [this message]
2004-05-18 16:58         ` tail and win file handling Larry Hall
2004-05-18 17:23           ` C Wells
2004-05-18 22:13             ` Larry Hall
2004-05-19 17:42 Paul Haas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040518133131.60389.qmail@web60408.mail.yahoo.com \
    --to=s2audi@yahoo.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).