Can I tell if my console output is redirected (TIOCCONS)?

Dave Cohrs dave at romano.cs.wisc.edu
Thu Mar 30 09:22:16 AEST 1989


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 at cs.wisc.edu                       ...!{harvard,rutgers,ucbvax}!uwvax!dave



More information about the Comp.unix.wizards mailing list