Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!boulder!sunybcs!rutgers!uwvax!romano.cs.wisc.edu!dave From: dave@romano.cs.wisc.edu (Dave Cohrs) Newsgroups: comp.unix.wizards Subject: Can I tell if my console output is redirected (TIOCCONS)? Keywords: TIOCCONS, SunOS Message-ID: <7378@spool.cs.wisc.edu> Date: 29 Mar 89 23:22:16 GMT Sender: news@spool.cs.wisc.edu Reply-To: dave@romano.cs.wisc.edu (Dave Cohrs) Organization: U of Wisconsin CS Dept Lines: 10 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