in reply to Test whether STDOUT is connected to a file
On Linux, the -p file test can tell you if STDOUT is connected to a pipe, no idea if that works on windows too (Update: -t is probably more informative than -p).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test whether STDOUT is connected to a file
by rovf (Priest) on Aug 18, 2010 at 13:29 UTC | |
by wazoox (Prior) on Aug 19, 2010 at 10:46 UTC |