home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / shell / 4738 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.0 KB

  1. Path: sparky!uunet!dinowine!eddjp
  2. From: eddjp@huber.com (Dewey Paciaffi)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Am I writing to a tty or pipe?
  5. Message-ID: <229@dinowine.huber.com>
  6. Date: 16 Nov 92 17:06:13 GMT
  7. References: <228@dinowine.huber.com> <Bxovv9.MBu@ddsw1.mcs.com>
  8. Sender: news@dinowine.huber.com
  9. Organization: J.M. Huber Corp., Edison, NJ
  10. Lines: 22
  11. Originator: eddjp@hendrix.huber.com
  12.  
  13.  
  14. In article <Bxovv9.MBu@ddsw1.mcs.com>, dattier@ddsw1.mcs.com (DWT) writes:
  15. |> eddjp@dinowine.huber.com (Dewey Paciaffi) wrote in <228@dinowine.huber.com>:
  16. |> 
  17. |> | Is there a way to determine from within a Bourne shell script if
  18. |> | the output is being written to a tty or a pipe?
  19. |> 
  20. |> test -t 
  21. |> 
  22. |> or were you thinking of something that test -t doesn't answer?
  23. |> 
  24. |> David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  25. |> dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  26.  
  27. That's exactly what I was looking for. Thanks to all who responded.
  28.  
  29. -- 
  30. Dewey Paciaffi    
  31. eddjp@huber.com
  32. -- 
  33. Dewey Paciaffi    
  34. eddjp@huber.com
  35.