version 1.9, 2007/10/31 17:14:34 |
version 1.10, 2008/02/07 15:38:07 |
|
|
.Nd find or signal processes by name |
.Nd find or signal processes by name |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm pgrep |
.Nm pgrep |
.Op Fl flnvx |
.Op Fl flnovx |
.Op Fl d Ar delim |
.Op Fl d Ar delim |
.Op Fl G Ar gid |
.Op Fl G Ar gid |
.Op Fl g Ar pgrp |
.Op Fl g Ar pgrp |
|
|
.Op Ar pattern ... |
.Op Ar pattern ... |
.Nm pkill |
.Nm pkill |
.Op Fl Ar signal |
.Op Fl Ar signal |
.Op Fl fnvx |
.Op Fl fnovx |
.Op Fl G Ar gid |
.Op Fl G Ar gid |
.Op Fl g Ar pgrp |
.Op Fl g Ar pgrp |
.Op Fl P Ar ppid |
.Op Fl P Ar ppid |
|
|
.Nm pgrep |
.Nm pgrep |
command. |
command. |
.It Fl n |
.It Fl n |
Match only the most recently created process, if any. |
Match only the most recently created (newest) process, if any. |
|
Cannot be used in conjuction with |
|
.Fl o . |
|
.It Fl o |
|
Match only the least recently created (oldest) process, if any. |
|
Cannot be used in conjuction with |
|
.Fl n . |
.It Fl P Ar ppid |
.It Fl P Ar ppid |
Restrict matches to processes with a parent process ID in the |
Restrict matches to processes with a parent process ID in the |
comma-separated list |
comma-separated list |