in reply to Re^2: Both print and redirect STDOUT and STDERR
in thread Both print and redirect STDOUT and STDERR

IO::Tee then.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re^3: Both print and redirect STDOUT and STDERR

Replies are listed 'Best First'.
Re^4: Both print and redirect STDOUT and STDERR
by chessgui (Scribe) on Feb 10, 2012 at 15:28 UTC
    IO::Tee won't install on Windows (or at least I'm not able to install it). However I played around with the GNU tee utility for Windows and arrived at this:
    tee |cmd.exe |tee -a tee.txt
    The above accepts input from keyboard, make cmd.exe act on it and also print and append output to tee.txt.

      According to CPAN Testers Matrix you should be able to install it. Are you sure it's not in PPM?

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.