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