version 1.6, 2005/07/16 11:48:46 |
version 1.7, 2005/07/16 11:58:10 |
|
|
processes that match the criteria given on the command line. |
processes that match the criteria given on the command line. |
.Pp |
.Pp |
The following options are available: |
The following options are available: |
.Bl -tag -width xxxxxxxx |
.Bl -tag -width Ds |
.It Fl d Ar delim |
.It Fl d Ar delim |
Specify a delimiter to be printed between each process ID. |
Specify a delimiter to be printed between each process ID. |
The default is a newline. |
The default is a newline. |
|
|
.Sq ttyxx |
.Sq ttyxx |
or the shortened form |
or the shortened form |
.Sq xx . |
.Sq xx . |
A single dash (`-') matches processes not associated with a terminal. |
A single dash |
|
.Pq Sq - |
|
matches processes not associated with a terminal. |
.It Fl U Ar uid |
.It Fl U Ar uid |
Restrict matches to processes with a real user ID in the comma-separated |
Restrict matches to processes with a real user ID in the comma-separated |
list |
list |
|
|
.Nm pgrep |
.Nm pgrep |
or |
or |
.Nm pkill |
.Nm pkill |
process will never consider itself nor system processes (kernel threads) as |
process will never consider itself or system processes (kernel threads) as |
a potential match. |
a potential match. |
.Sh EXIT STATUS |
.Pp |
.Nm pgrep |
.Nm pgrep |
and |
and |
.Nm pkill |
.Nm pkill |
return one of the following values upon exit: |
return one of the following values upon exit: |
.Bl -tag -width foo |
.Pp |
|
.Bl -tag -width Ds -offset indent -compact |
.It 0 |
.It 0 |
One or more processes were matched. |
One or more processes were matched. |
.It 1 |
.It 1 |
|
|
An internal error occurred. |
An internal error occurred. |
.El |
.El |
.Sh SEE ALSO |
.Sh SEE ALSO |
|
.Xr grep 1 , |
.Xr kill 1 , |
.Xr kill 1 , |
.Xr ps 1 , |
.Xr ps 1 , |
.Xr kill 2 , |
.Xr kill 2 , |