How to get info on process

Mike McCarty Mike.McCarty at sbcglobal.net
Fri Feb 23 16:11:11 UTC 2007


Dan Track wrote:
> Hi
> 
> I've got a file /opt/development/index.html that I serve. The problem
> I'm having is that some other process is touching/locking this file at
> random intervals. Now this mystery process seems to only last for less

I don't understand. This is not a standard file, so the process which
is opening it should be one you created.

> than a second. So my dilemma is how do I capture what it is given the
> short space of time the process acts upon the file. What tools are
> available.

Common sense and intelligence go a long way. Turn off your apps, and
turn them back on one by one.

> I've tried to use
> 
> watch lsof /opt/development/index.html
> 
> with an interval of 1 sec refresh, but I still can't see the process. 
> Any ideas?

Yes. You must have *some* app which is noticing that the file is
getting locked. Have it do an lsof on that file.

But really, this must be one of your own apps that's doing it,
musn't it?

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




More information about the fedora-list mailing list