in reply to system stdout redirected ok to a file but not to a variable.
It's a pity to read that there is a logical explanation for what is happening :-(
I'll try to go with the IPC::open3 option and see if I can control exit codes, and STDOUT / STDERR.
The this is this script needs to be some kind of generic Wrapper for a monitoring tool. Therefore I'm not sure which modules/libraries I have available there. that's why I needed to have the simpliest version.
Other possible solution might be to dump the stdout/stderr to a temp file and read it afterwards, but... did not want to "touch" anything on the server :-(
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system stdout redirected ok to a file but not to a variable.
by locked_user sundialsvc4 (Abbot) on May 29, 2015 at 13:34 UTC |