Re: Get pid of a process



Josef Moellers wrote:
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


SEE ALSO:
pgrep
.



Relevant Pages

  • Re: Get pid of a process
    ... command "ps -ef | grep Controller" give me the list of all process ... If failure had no penalty success would not be a prize ... -- T. Pratchett ...
    (comp.os.linux.development.system)
  • Get pid of a process
    ... command "ps -ef | grep Controller" give me the list of all process ... Now i would like to get only the Pids of "mailController ms01.mac.com" ...
    (comp.os.linux.development.system)