This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: less locks the file


On Jun 21 09:50, Jean-Pierre Bergamin wrote:
> Dear cygwin-Users
> 
> When using less to follow a log file (less +F logfile.log), this
> file is locked. So when I restart the application, it cannot delete
> this locked log file and create a new one. So I always have to quit
> less, before restarting the app, which I of course forget like every
> 2nd time... less does not lock on linux.
> 
> Is there any way I could tell less not to lock the file?

Upgrade Cygwin to the latest release might be an option.  It's not less
which locks the file, it's the fact that Windows does not allow to
delete files which are in use.  Recent Cygwin versions have a workaround
for this.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]