pidof
Name
pidof -- find the process ID of a running program
Synopsis
pidof [-s] [-x] [-o omitpid...] program...
Description
Return the process ID of a process which is running the program named
on the command line.
Options
- -s
instructs the program to only return one pid.
- -x
causes the program to also return process id's of
shells running the named scripts.
- -o
omits processes with specified process id.