To capture both stdout and stderr, bash provides the '2>&1|' and '|&' 
paradigms; from the bash info:

   "If '|&' is used, the standard error of COMMAND1 is connected to
COMMAND2's standard input through the pipe; it is shorthand for
'2>&1|'.  This implicit redirection of the standard error is performed after
any redirections specified by the command."

thus,

"ls |& rxqueue"

Leslie

On Wednesday 17 June 2015 12:46:43 René Jansen wrote:
> Interesting and have it downloaded already.
>
> To capture output on Linux and other, I would normally rxqueue the command
> and loop through the queued lines.
>
>  “ls | rxqueue"
>  line.0 = queued()
>
>  do l = 1 to line.0
>    parse pull line.l
>     say line.l
>  end
>
> There might be more sophisticated ways.
>
> best regards,
>
> René.



-- 
It’s good to be open-minded, but not so open-minded that your brain falls out.

------------------------------------------------------------------------------
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to