Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!tcdcs!wsl!jja From: jja@wsl.ie (John Allen on wsl) Newsgroups: comp.os.msdos.programmer Subject: Re: Sensing STDOUT redirection in C Keywords: STDOUT, Redirection, MSDOS Message-ID: <753@wsl.ie> Date: 16 Apr 91 15:36:34 GMT References: Organization: Workhorse Systems Limited, Dublin Lines: 13 if (isatty(1)) { // has been redirected } else { // has not been redirected } -- People that don't know want to know from the people that do know and if the poeple that do know don't tell the people that don't know then the people that don't know still won't know. "Don't quote me on any issue whatsoever."