pipe breaking

Daniel R. Levy levy at ttrdc.UUCP
Mon Nov 18 12:28:30 AEST 1985


In article <478 at sdcc12.UUCP>, np42pf at sdcc12.UUCP (Pierre Flament) writes:
>The following construct (sub-shell, see sh(1))
>will allow redirection of the input to
>the terminal after finding the eof without any special code in
>the program:
>
>(ccat file;cat) | plotting_program
>
>A ^D should be send to end the keyboard input

Good idea.  Maybe

(ccat file; echo Keyboard input started > /dev/tty; cat -) | plotting-program

would be even better to let the user know when to begin typing (if what
is typed depends on what came out of the program and couldn't necessarily
be typed ahead).
-- 
 -------------------------------    Disclaimer:  The views contained herein are
|       dan levy | yvel nad      |  my own and are not at all those of my em-
|         an engihacker @        |  ployer or the administrator of any computer
| at&t computer systems division |  upon which I may hack.
|        skokie, illinois        |
 --------------------------------   Path: ..!ihnp4!ttrdc!levy



More information about the Comp.unix mailing list