Dropped "-f" format flag for pidof command as it
could be used to print information from memory or crash pidof. Replaced flag with "-d" which allows for a custom separator to be used between listed PIDs. Patch supplied by KatolaZ.
This commit is contained in:
12
man/pidof.8
12
man/pidof.8
@@ -28,8 +28,8 @@ pidof -- find the process ID of a running program.
|
||||
.IR omitpid[,omitpid...] ]
|
||||
.RB [ \-o
|
||||
.IR omitpid[,omitpid...]... ]
|
||||
.RB [ \-f
|
||||
.IR format ]
|
||||
.RB [ \-d
|
||||
.IR sep ]
|
||||
.B program
|
||||
.RB [ program... ]
|
||||
.SH DESCRIPTION
|
||||
@@ -64,15 +64,13 @@ a status of true or false to indicate whether a matching PID was found.
|
||||
.IP \-x
|
||||
Scripts too - this causes the program to also return process id's of
|
||||
shells running the named scripts.
|
||||
.IP "-d \fIsep\fP"
|
||||
Tells \fIpidof\fP to use \fIsep\fP as an output separator if more than one PID
|
||||
is shown. The default separator is a space.
|
||||
.IP "-o \fIomitpid\fP"
|
||||
Tells \fIpidof\fP to omit processes with that process id. The special
|
||||
pid \fB%PPID\fP can be used to name the parent process of the \fIpidof\fP
|
||||
program, in other words the calling shell or shell script.
|
||||
.IP "-f \fIformat\fP"
|
||||
Tells \fIpidof\fP to format the process IDs in the given \fIprintf\fP style string.
|
||||
For example \fB" -p%d"\fP is useful for \fIstrace\fP.
|
||||
The "%d" symbol is used as a place holder for the PID to be printed. A "\\n" can
|
||||
be used to cause a newline to be printed. For example \fB" %d\\n"\fP.
|
||||
.SH "EXIT STATUS"
|
||||
.TP
|
||||
.B 0
|
||||
|
Reference in New Issue
Block a user