Re: Get pid of a process
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 15 Sep 2006 15:00:00 +0200
shafa.fahad@xxxxxxxxx wrote:
Hi,
command "ps -ef | grep Controller" give me the list of all process
running...
say,
nsmail 11594 11593 0 Sep 07 ? 0:00 mailController
ms01.mac.com
nsmail 11680 11594 0 Sep 07 ? 0:00 mailController
ms01.mac.com
nsmail 11683 11594 0 Sep 07 ? 0:00 mailController
ms01.mac.com
Now i would like to get only the Pids of "mailController ms01.mac.com"
?????
What should be the command????
TMTOWTDI
ps -ef | grep 'Controller.*ms01.mac.com'
ps -ef | grep Controller | grep ms01.mac.com
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
.
- Follow-Ups:
- Re: Get pid of a process
- From: John Fusco
- Re: Get pid of a process
- References:
- Get pid of a process
- From: shafa . fahad
- Get pid of a process
- Prev by Date: Get pid of a process
- Next by Date: Re: Get pid of a process
- Previous by thread: Get pid of a process
- Next by thread: Re: Get pid of a process
- Index(es):
Relevant Pages
|