HP-UX Reference (11i v3 07/02) - 1 User Commands N-Z (vol 2)

p
pgrep(1) pgrep(1)
pgrep -u root cron
Send SIGHUP signal to syslogd:
pkill -HUP -u root syslogd
Print PIDs of telnet sessions that are active for more than 2 days:
pgrep -e 2::: telnet$
WARNINGS
Process information can change while
pgrep or pkill is running; the picture it gives is only a snapshot
in time.
With the
-f option, pgrep and pkill
matches only up to the initial 1020 bytes of command line with the
pattern string.
pgrep and pkill will not match itself.
DEPENDENCIES
HP Process Resource Manager
The -R option require the optional HP Process Resource Manager (PRM) software to be installed and
configured. See prmconfig(1) for a description of how to configure HP PRM, and prmconf(4) for the
definition of process resource group.
If HP PRM is not installed and configured and
-R is specified,
pgrep or pkill fails with error message.
FILES
/dev Directory of terminal device files.
SEE ALSO
kill(1), ps(1), ptree(1).
HP Process Resource Manager: prmconfig(1), prmconf(4) in HP Process Resource Manager User’s Guide.
HP-UX 11i Version 3: February 2007 3 Hewlett-Packard Company 123