Execute program and read stderr?
Execute program and read stderr?
Is there an altenative to the standard PB commands to execute a program and read from its stderr? I tried to search for this and couldn't find anything...
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Re: Execute program and read stderr?
You mean reading STDERR of a program purely in the shell?Inf0Byt3 wrote:Is there an altenative to the standard PB commands to execute a program and read from its stderr? I tried to search for this and couldn't find anything...
Simple: APP_ERR="$(/usr/bin/application 2>&1)"
Now you have the $APP_ERR variable to play with ^o^
I've got it to work now. For whatever reason, when I am resizing gadgets in the code and try to read the stderr output, all i got back was an empty string. Had to change the flow a bit and it seems to be ok now.
Thanks for your help!
Thanks for your help!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)

