File: pidof.1

package info (click to toggle)
psmisc 16-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 144 kB
  • ctags: 164
  • sloc: ansic: 1,362; makefile: 82; sh: 6
file content (42 lines) | stat: -rw-r--r-- 1,309 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.TH PIDOF 1 "Apr 19, 1997" "Linux" "User Commands"
.SH NAME
pidof \- finds processes by name and lists their PIDs
.SH SYNOPSIS
.ad l
.B pidif
.RB [ \-e ]
.I name ...
.br
.B pidof
.RB \-V
.ad b
.SH DESCRIPTION
.B pidof
lists the PIDs of all processes running any of the specified commands.
.PP
If the command name contains a slash (\fB/\fP), processes executing that
particular file will be selected, independent of their name.
.PP
\fBpidof\fP returns a non-zero return code if no process has been found 
for any of the listed commands. If at least one process has been found for
each command, \fBpidof\fP returns zero.
.SH OPTIONS
.IP \fB\-e\fP
Require an exact match for very long names. If a command name is longer
than 15 characters, the full name may be unavailable (i.e. it is swapped
out). In this case, \fBpidof\fP will list everything that matches within
the first 15 characters. With \fB\-e\fP, such entries are silently skipped.
.IP \fB\-V\fP
Display version information.
.SH FILES
.nf
/proc	location of the proc file system
.fi
.SH "KNOWN BUGS"
Selection by file only works for executables that are kept open during
execution, i.e. impure executables can't be selected this way.
.SH AUTHOR
Werner Almesberger <werner.almesberger@lrc.di.epfl.ch>
.SH "SEE ALSO"
killall(1), fuser(1), ps(1)
.\"{{{}}}