Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!xadmx!rbj@dsys.ncsl.nist.gov From: rbj@dsys.ncsl.nist.gov (Root Boy Jim) Newsgroups: comp.unix.questions Subject: peeking in on a pipe Message-ID: <20230@adm.BRL.MIL> Date: 12 Jul 89 20:22:14 GMT Sender: news@adm.BRL.MIL Lines: 30 ? From: Tim Evans ? 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.