1 ." Text automatically generated by txt2man-1.4.7
2 .TH recordio "September 25, 2006" "" ""
4 \fBrecordio \fP- recordio records the input and output of a program.
8 \fBrecordio\fP \fIprog\fP
13 \fBrecordio\fP runs \fIprog\fP. It prints lines to descriptor 2 showing the input and output of \fIprog\fP.
15 At the beginning of each line on descriptor 2, \fBrecordio\fP inserts the \fIprog\fP process ID, along with < for input or > for output. At the end of each line it inserts +, a space, or [EOF]; a space indicates that there was a new line in the input or output, and [EOF] indicates the end of input or output.
17 \fBrecordio\fP prints every packet of input and output immediately. It does not attempt to combine packets into coherent lines. For example,
21 recordio sh -c 'cat /dev/fd/8 2>&1' > /dev/null
29 5135 > cat: /dev/fd/8: Bad file descriptor
41 5135 > Bad file descriptor
46 if the cat program prints several packets.
48 \fBrecordio\fP uses several lines for long packets to guarantee that each line is printed atomically.
49 \fBrecordio\fP runs as a child process of \fIprog\fP. It exits when it sees the end of \fIprog\fP's output.