[comp.unix.wizards] Can I tell if my console output is redirected

dave@romano.cs.wisc.edu (Dave Cohrs) (03/30/89)

I'm running SunOS 4.0.1, and I'd like to find out if my console
output is redirected to a pty, and if so, take some action.

How do I tell if the console output is redirected?

thanks
--
Dave Cohrs
+1 608 262-6617                        UW-Madison Computer Sciences Department
dave@cs.wisc.edu                       ...!{harvard,rutgers,ucbvax}!uwvax!dave