Re: Get pid of a process
- From: John Fusco <fusco_john@xxxxxxxxx>
- Date: Fri, 15 Sep 2006 13:24:31 GMT
Josef Moellers wrote:
shafa.fahad@xxxxxxxxx wrote:SEE ALSO: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
pgrep
.
- References:
- Get pid of a process
- From: shafa . fahad
- Re: Get pid of a process
- From: Josef Moellers
- Get pid of a process
- Prev by Date: Re: Get pid of a process
- Next by Date: linux sleep implementation
- Previous by thread: Re: Get pid of a process
- Next by thread: linux sleep implementation
- Index(es):
Relevant Pages
|