Re: How to judge a file has already opened by other programme?



"Gordon" <glin@xxxxxxxxxxxxx> writes:

I to fine out whether the file has already opened by other programme.
But there is not ready-made API in linux to gain this information
directily. It's seems the only way to gain this information is to
access the directory /proc. But this method is too complicate,so What
can I do in convenient way to judge a file has already opened by other
programme.

man lsof
.



Relevant Pages

  • Re: xp security
    ... nothing on the Linux box as it is only used for web surfing by ... > You would gain nothing but a larger electric bill. ... > Your router is far more secure a device than a gateway PC that is setup ... In fact, your router is ...
    (alt.computer.security)
  • Re: Longhorn strategy a secret?
    ... >I don't want to get into a long Windows vs Linux debate, ... > I've seen statisitics that show Linux gaining and losing market share ... For starters we're assuming that these OS's will continue to gain market ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: xp security
    ... > Would I gain anything by using that linux box as a gateway PC and adding ... You would gain nothing but a larger electric bill. ... Your router is far more secure a device than a gateway PC that is setup ...
    (alt.computer.security)
  • Re: [SLE] How do I build RPMs for SuSE?
    ... > Some have enough experience (past gain) or are smarter enough to have ... > large coefficient in some tasks so that the pain pass unnoticed. ... Any IT manager considering a switch to linux will tell you ...
    (SuSE)
  • Re: Linux explodes in 2006.
    ... > Linux will gain a lot of ground in two years. ... Given past performance there is a good chance Longhorn could be delayed a ...
    (borland.public.delphi.non-technical)