This is an OS issue, not a tail issue.
Unix has no implicit file locks, while Windows has.

Maddes

On Tue, July 13, 2010 11:39, Alois Mahdal wrote:
> Hello,
>
> I'm using tail -F for watching various logs (e.g. Apache's access.log).
> The problem is that tail keeps the file constantly open and locked,
> preventing me from deleting it (say I need to clean up the log from time
> to time, e.g. using a simple Windows batch with DEL /F).
>
> Is there any way to prevent tail from this behavior?
>
> In fact, I think it can be considered bug (limitation?) as the behavior of
> original tail is different -- the file can be deleted any time, tail can
> always catch up (just tested on Debian/Lenny).
>
> The environment is Windows 7 amd64, and tail is typically run from Total
> Commander (i.e. in "Wow64" mode or whatever they call it; though it does
> not seem to matter as the behavior is same when it's run from native
> cmd.exe) as Administrator (I really don't need any real security here).
>
> Yeah, and
> C:\Users\Alois.Mahdal.CZ>tail --version
> tail (GNU coreutils) 5.3.0
>
> Any suggestions?
>
> Thanks a lot.
>
> --
> Alois Mahdal using Opera's revolutionary e-mail client:
> http://www.opera.com/mail/
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> GnuWin32-Users mailing list
> GnuWin32-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gnuwin32-users
>



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to