Bash question - redirect stderr to a variable

Kevin Fries kfries6 at gmail.com
Tue Mar 15 15:21:22 MST 2011


On 03/15/2011 04:01 PM, Ben Trussell wrote:
> This might be helpful (and by that I mean mostly not helpful - you can
> easily send stderr to a file then input a file into a variable
> however).
>
> http://stackoverflow.com/questions/962255/redirecting-stderr-to-a-variable-in-a-bash-script
Also, have you seen this?

http://www.linuxquestions.org/questions/programming-9/bash-input-output-redirect-problem-515156/

It does a similar process but uses a fifo queue.

Kevin


More information about the PLUG-discuss mailing list