Hi there,
searched faq's and google, but couldn't find a complete solution. so here I post my question.
any ideas are appreciated.
I need some way to run a OS command and get
1: exit status
2: STDOUT
3: STDERR
in three different variables.
I use open3 to run a command:
I could get STDOUT And STDERR, but how to get exit status.
$?, didnt work.
any ideas.....
thanks,
_UB
searched faq's and google, but couldn't find a complete solution. so here I post my question.
any ideas are appreciated.
I need some way to run a OS command and get
1: exit status
2: STDOUT
3: STDERR
in three different variables.
I use open3 to run a command:
Code:
open3(gensym, \*CATCHOUT, ">&CATCHERR", $cmd);
I could get STDOUT And STDERR, but how to get exit status.
$?, didnt work.
any ideas.....
thanks,
_UB