OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / expect / original / man1 / unbuffer.1
1 .TH UNBUFFER 1 "1 June 1994"
2 .SH NAME
3 unbuffer \- unbuffer output
4 .SH SYNOPSIS
5 .B unbuffer
6 .I program
7 [
8 .I args
9 ]
10 .SH INTRODUCTION
11 .B unbuffer
12 disables the output buffering that occurs when program output
13 is redirected.
14 For example, suppose you are watching the output from a fifo by running it
15 through od and then more.  
16 .nf
17
18         od -c /tmp/fifo | more
19
20 .fi
21 You will not see anything until a full page
22 of output has been produced.
23
24 You can disable this automatic buffering as follows:
25
26 .nf
27
28         unbuffer od -c /tmp/fifo | more
29
30 .fi
31 When you have a pipeline, unbuffer must be applied to each element
32 except the last (since that doesn't have its output redirected).
33 Example:
34 .nf
35
36         unbuffer p1 | unbuffer p2 | unbuffer p3 | p4
37 .fi
38 .SH BUGS
39
40 The man page is longer than the program.
41
42 .SH SEE ALSO
43 .I
44 "Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs"
45 \fRby Don Libes,
46 O'Reilly and Associates, January 1995.
47 .SH AUTHOR
48 Don Libes, National Institute of Standards and Technology