in reply to Re: Test if STDOUT is attached to console or shell redirected filehandlein thread Test if STDOUT is attached to console or shell redirected filehandle