in reply to capture stdout and stderr from external command

What is an "external" command? Can you give an example?
  • Comment on Re: capture stdout and stderr from external command

Replies are listed 'Best First'.
Re^2: capture stdout and stderr from external command
by pankajadvani (Initiate) on Nov 11, 2011 at 17:59 UTC

    The external command is an windows executable with some arguments passed to it. The executable prints some statistics on the command window while some args are passed to it. For example, its something like "perl.exe script.pl $args" (where $args change for each child process being forked)

    My aim is to stop printing the executable output into the command window and instead consolidate the output of 5000 runs of executable with different arguments and selectively print them in the end.