]> granicus.if.org Git - psmisc/commitdiff
Added man page for peekfd.
authorquantumg <quantumg>
Thu, 15 Mar 2007 11:50:36 +0000 (11:50 +0000)
committerquantumg <quantumg>
Thu, 15 Mar 2007 11:50:36 +0000 (11:50 +0000)
Added README comment for peekfd.
Fixed spelling issue.

AUTHORS
README
doc/peekfd.1 [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
index 83220ece08a1acb60452626ea5706c7a48dc7288..5114799e42d899934a8138f8e5036b704483532d 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,3 +1,3 @@
 Werner Almesberger <werner@almesberger.net>
 Craig Small <csmall@small.dropbear.id.au>
-peekfd writtten by Trent Waddington <trent.waddington@gmail.com>
+peekfd written by Trent Waddington <trent.waddington@gmail.com>
diff --git a/README b/README
index f6d4e8aefb2b03014b8e0565c5520ca661e0d78e..40bdbd6319aa99aaf9865d47ee892a15e309a9e5 100644 (file)
--- a/README
+++ b/README
@@ -9,6 +9,10 @@ This package contains four little utilities that use the proc FS:
   pidof            like killall, buts lists PIDs instead of killing processes
   pstree    shows the currently running processes as a tree
 
+and
+
+  peekfd    shows the data travelling over a file descriptor
+
 They should work with most recent kernels. Man pages are included.
 
 - Werner Almesberger <Werner.Almesberger@epfl.ch>
diff --git a/doc/peekfd.1 b/doc/peekfd.1
new file mode 100644 (file)
index 0000000..f06e274
--- /dev/null
@@ -0,0 +1,51 @@
+.\" Process this file with
+.\" groff -man -Tascii foo.1
+.\"
+.TH PEEKFD 1 "FEBRUARY 2007" Linux "User Manuals"
+.SH NAME
+peekfd \- peek at file descriptors of running processes
+.SH SYNOPSIS
+.B peekfd [-8] [-n] [-c] [-d] [-v] [-h]
+.I pid
+.I [fd]
+.I [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:
+
+.B 
+Error attaching to pid ...
+.RS
+An unknown error occured 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.
+
+No long options are implemented.
+.SH AUTHOR
+Trent Waddington <trent.waddington@gmail.com>
+.SH "SEE ALSO"
+.BR ttysnoop (8)