-----Original Message----- From: Doug McGarrett <dmcgarrett@optonline.net> To: suse-linux-e@suse.com Date: Sun, 06 Jun 2004 20:48:58 -0400 Subject: [SLE] find pid
How can I find the pid of an errant file? If I do top, (from home
Processes have pid's not files. Use ps auxww | grep <name of process> to find any process running under that name.
directory) I get a ton of stuff, and if I could expand the window from top to bottom, I'd get even more. top does not seem to take an argument--i.e., if I try top /kmail I get an error message. And if I can't give it an argument, must I just patiently wait until the file I'm looking for comes up, and then hope to catch it before it goes?
--doug
Top is meant to show the "top" processes of the running system which is why you want to use ps auxww|grep <name of process> for specific process. pidof will also show the same pid (only) but you need to be more specific in the name of the process. Ken