rbj@dsys.ncsl.nist.gov (Root Boy Jim) (07/13/89)
? From: Tim Evans <Tim.Evans@f112.n138.z1.wa.com> ? I would like to 'peek' in on a pipe, to see what is happening in it, WHILE ? IT EXECUTES. I tried something like this, but no luck: ? ? some_stuff | tee `tty` | more_stuff ? ? I would like to do this while it executes, not tee to a file and see it ? later. Does anyone have any ideas how this might be done? ? Thanks, ? ...Tim Yes. Simply use /dev/tty in place of "`tty`". Conceptually, it should work, but R'ing TFM hints that only standard input is being checked. To confirm this, try executing the following commands: echo `tty` echo `tty` < /dev/null You will see "not a tty" on the latter. ? /////////////////////////////////////////////////////////////////// ? - BBS phone no. +1 (206) 822-4615 FidoNet 1:343/15 Kirkland,WA USA ? - UUCP uunet!nwnevus!seaeast ? uw-beaver!thebes!camco!happym!rwing!seaeast ? - INTERNET seaeast.WA.COM ? /////////////////////////////////////////////////////////////////// Root Boy Jim Have GNU, Will Travel.