summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-leap-15-6/man1/peekfd.1
blob: a1dbddf7c83c783dcdcc91ea88f5c1facb0633b4 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.\"
.\" Copyright 2007 Trent Waddington <trent.waddington@gmail.com>
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.TH PEEKFD 1 "2012-07-28" "psmisc" "User Commands"
.SH NAME
peekfd \- peek at file descriptors of running processes
.SH SYNOPSIS
.B peekfd 
.RB [ \-8 , \-\-eight\-bit\-clean ]
.RB [ \-n , \-\-no\-headers ]
.RB [ \-f , \-\-follow ]
.RB [ \-d , \-\-duplicates\-removed ]
.RB [ \-V , \-\-version ]
.RB [ \-h , \-\-help ]
.I pid
.RI [ fd ]
.RI [ fd ]
.B ...
.SH DESCRIPTION
.B peekfd
attaches to a running process and intercepts all reads and writes to
file descriptors.  You can specify the desired file descriptor numbers
or dump all of them.
.SH OPTIONS
.IP -8
Do no post-processing on the bytes being read or written.
.IP -n
Do not display headers indicating the source of the bytes dumped.
.IP -c
Also dump the requested file descriptor activity in any new child
processes that are created.
.IP -d
Remove duplicate read/writes from the output.  If you're looking at a
tty with echo, you might want this.
.IP -v
Display a version string.
.IP -h
Display a help message.
.SH FILES
.I /proc/*/fd
.RS
Not used but useful for the user to look at to get good file descriptor
numbers.
.SH ENVIRONMENT
None.
.SH DIAGNOSTICS
The following diagnostics may be issued on stderr:
.TP
.B Error attaching to pid ...
An unknown error occurred while attempted to attach to a process..  you
may need to be root.
.SH BUGS
Probably lots.  Don't be surprised if the process you are monitoring
dies.
.SH AUTHOR
.MT trent.waddington@gmail.com
Trent Waddington
.ME
.SH "SEE ALSO"
.BR ttysnoop (8)