Name
pidof -- find the process ID of a running program.
Synopsis
pidof [-s] [-x] [-o omitpid..] program [program..] |
Options
- -s
Single shot - this instructs the program to only return one pid.
- -x
scripts too - this causes the program to also return process id's of
shells running the named scripts.
- -o
Tells pidof to omit processes with that process id.