LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] I'm locked!

[CLUG] I'm locked!

Paul J Collins sneakums at zork.net
Tue Mar 13 09:42:06 GMT 2001


>>>>> "BJ" == Baldwin James <Baldwin_James at emc.com> writes:

    BJ> How do ya find out the PID's & UID's (and/or maybe parent
    BJ> PID's of Child processes) which are locking a file?

lsof can tell which processes have a file open.  I think it will also
indicate if the file is locked.  Given the PID gleaned from lsof, you
can then use ps to get any other needed information.

    BJ> How could you unlock the file from them without killing their
    BJ> process?

Why would you want to do that?  If you did do that, the calling
process with the lock wouldn't know about it, so it would carry on
doing whatever it is doing to the locked region.

    BJ> How could you inform the user or push a std. file-handling
    BJ> command to instruct the process to release the file?

I'm not sure what you mean by this, to be honest.

-- 
"Pity has no place at my table."
      -- Dr Hannibal Lecter




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell