home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dinowine!eddjp
- From: eddjp@huber.com (Dewey Paciaffi)
- Newsgroups: comp.unix.shell
- Subject: Re: Am I writing to a tty or pipe?
- Message-ID: <229@dinowine.huber.com>
- Date: 16 Nov 92 17:06:13 GMT
- References: <228@dinowine.huber.com> <Bxovv9.MBu@ddsw1.mcs.com>
- Sender: news@dinowine.huber.com
- Organization: J.M. Huber Corp., Edison, NJ
- Lines: 22
- Originator: eddjp@hendrix.huber.com
-
-
- In article <Bxovv9.MBu@ddsw1.mcs.com>, dattier@ddsw1.mcs.com (DWT) writes:
- |> eddjp@dinowine.huber.com (Dewey Paciaffi) wrote in <228@dinowine.huber.com>:
- |>
- |> | Is there a way to determine from within a Bourne shell script if
- |> | the output is being written to a tty or a pipe?
- |>
- |> test -t
- |>
- |> or were you thinking of something that test -t doesn't answer?
- |>
- |> David W. Tamkin Box 59297 Northtown Station, Illinois 60659-0297
- |> dattier@ddsw1.mcs.com CompuServe: 73720,1570 MCI Mail: 426-1818
-
- That's exactly what I was looking for. Thanks to all who responded.
-
- --
- Dewey Paciaffi
- eddjp@huber.com
- --
- Dewey Paciaffi
- eddjp@huber.com
-