in reply to Re^2: Redirecting and using output from executed program
in thread Redirecting and using output from executed program

It is no different within yor script, just open (T_RES,"@exec 2>&1 |")

Replies are listed 'Best First'.
Re^4: Redirecting and using output from executed program
by Hena (Friar) on Sep 30, 2004 at 08:22 UTC
    Ah... Ok :). Then I will get both STDERR and STDOUT in same stream. Thats would work, thanks.

    However is it possible to get it into different stream or prepend each line from STDERR or STDOUT with something to allow easier seperation of the STDOUT and STDERR?

      Yes, see IPC::Open3

      use IPC::Open3; $pid = open3( \*WTRFH, \*RDRFH, \*ERRFH, 'some cmd and args' );
        Ok. Thanks for help :).