Chris wrote: > On Fri, Feb 19, 2010 at 5:51 PM, Dave Smith <[email protected]> wrote: > > >> How can I tell, in Linux in C, whether stdout and stderr are redirected >> to a file vs. an interactive shell? >> > > > isatty(fileno(stdout)) >
Nailed it! Chris, you are the man! --Dave /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
