X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/utils/blobdiff_plain/acf5ef0b86d1ad68e7a5bada63aeaa118009303b..8f9d00c397a6804953a2bb06e7b226c9d7737aed:/pid/pid.but diff --git a/pid/pid.but b/pid/pid.but index 8f424e6..c8075c9 100644 --- a/pid/pid.but +++ b/pid/pid.but @@ -37,12 +37,12 @@ By default, \cw{pid} outputs exactly one process ID, or the word \cq{NONE} or \cq{MULTIPLE} if it finds no matching process or more than one. This is a mode suitable for use as an argument to \cw{strace} (which expects exactly one process ID after its \cw{-p} -argument) or \cw{gdb} (which expects a single pid too); the \cq{NONE} -or \cq{MULTIPLE} answers will provoke a command-line parsing error -rather than trying to trace the wrong process or expanding to a less -obviously wrong command line. Use the \cw{-a} option to instead make -\cw{pid} output a full list of pids that match (e.g. if you want to -pass them all to \cw{kill}(\e{1}). +argument) or \cw{gdb} or \cw{after} (which expect a single pid as an +argument); the \cq{NONE} or \cq{MULTIPLE} answers will provoke a +command-line parsing error rather than trying to trace the wrong +process or expanding to a less obviously wrong command line. Use the +\cw{-a} option to instead make \cw{pid} output a full list of pids +that match (e.g. if you want to pass them all to \cw{kill}(\e{1}). You can also provide arguments to the command you're searching for, to narrow your search further. For example, if you have several