Web lists-archives.com

Re: lsof?




On Thu 2018-05-03 (20:57), Brian Inglis wrote:
> On 2018-05-03 15:46, Ulli Horlacher wrote:
> 
> > I need to know if a file is opened by another process, but there is no
> > lsof cygwin package. 
> > Is there an alternative?
> 
> Program fuser in package psmisc.

Great!

~: uname
CYGWIN_NT-6.1

~: fuser -v /tmp/test
                     USER        PID ACCESS COMMAND
/tmp/test:           admin      1328 F.... perl

~: man fuser | fpg -p AUTHORS
AUTHORS
       Werner Almesberger <werner@xxxxxxxxxxxxxxx>

Werner is an old friend of mine! The world is a village :-)


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum TIK         
Universitaet Stuttgart         E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Allmandring 30a                Tel:    ++49-711-68565868
70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<b163cc31-6dec-9048-13ae-56a442d41b49@xxxxxxxxxxxxxxxxxx>

--
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