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

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?
  • Comment on Re^4: Redirecting and using output from executed program

Replies are listed 'Best First'.
Re^5: Redirecting and using output from executed program
by tachyon (Chancellor) on Sep 30, 2004 at 08:27 UTC

    Yes, see IPC::Open3

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