2015-02-02 17:34:26 +00:00
|
|
|
.Dd February 2, 2015
|
|
|
|
.Dt PIDOF 1
|
|
|
|
.Os ubase
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pidof
|
|
|
|
.Nd find the process ID of a running program
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl o Ar pid1,pid2,...pidN
|
|
|
|
.Op Fl s
|
|
|
|
.Op Ar program...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
finds the process id's of the named programs and prints them to
|
2014-04-13 15:36:23 +00:00
|
|
|
stdout.
|
2015-02-02 17:34:26 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl o
|
|
|
|
Tell pidof to omit processes with that process id. The special pid
|
2014-04-13 15:36:23 +00:00
|
|
|
%PPID can be used to name the parent process of the pidof program.
|
2015-02-02 17:34:26 +00:00
|
|
|
.It Fl s
|
2014-04-13 15:36:23 +00:00
|
|
|
Single shot - this instructs the program to only return one process id.
|
2015-02-02 17:34:26 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr killall5 8
|