
Phil
Novice
Jul 7, 2008, 6:32 AM
Post #1 of 3
(1581 views)
|
|
Redirecting output to console AND(!!) file on Windows
|
Can't Post
|
|
Hi all, While the task described in the subjects seems to be quite simple I realized that it is VERY frustrating to achieve on Windows platforms. I've already mentioned some of the problems here: http://www.perlguru.com/gforum.cgi?post=31281 Of course I could call all external programs using backticks and then print the output on the screen and into the log file but this is not very satisfying because some programs take very long to execute (getting lots of files from source control) and I would like to see what happens in "real time". How can this be achieved if piped open, 2>&1, "open(STDERR, ">&STDOUT");" and so on does not work?? I've also tried to use the IO::Tee module but this seems to have the same limitations. Is there anyone out there that has somehow solved this problem? Can this be accomplished on that crappy cmd.exe? Any new ideas / help is appreciated. Thanks!
|