Get pid of a process



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????

-Kimi

.



Relevant Pages

  • PID for ksoftireqd_CPU0 and friends
    ... unstable) on my laptop. ... It comes back clean (though I recognize that ... compared the PIDs in /proc with the PIDs from the PS command. ...
    (Debian-User)
  • Re: ERROR: Unsupported option (BSD syntax)
    ... If I enter the command ... I get the list of pids ... which works because the shell expands $name variables inside ... doublequotes but still uses the doublequotes to avoid splitting the ...
    (alt.os.linux.suse)
  • Re: run a process for a specified time
    ... > What command will run a script for x seconds and then ... program1 & PIDS="$PIDS $!" ... wait $PIDS # waits for the first process to end ... trap "echo TIMEOUT;kill $PIDS" 1 ...
    (comp.unix.shell)
  • Re: ERROR: Unsupported option (BSD syntax)
    ... If I enter the command ... I get the list of pids ... which works because the shell expands $name variables inside ... doublequotes but still uses the doublequotes to avoid splitting the ...
    (alt.os.linux.suse)
  • Re: lsof substitute?
    ... If you were looking for port ... Thats dead slow because you run one pfiles command ... existing pids, then run "pfiles $PIDs". ...
    (comp.unix.solaris)