in reply to Re: Test whether STDOUT is connected to a filein thread Test whether STDOUT is connected to a file