Thanks, it works. and how can I get the output continuously? it gives me the output after the command has been executed? like this:
can I use $? here too?open (OUTPUT, "command |"); while (<OUTPUT>) #do something with output }
In reply to Re^2: how can I redirect the output of a program and get the exit code too?
by vikee
in thread how can I redirect the output of a program and get the exit code too?
by vikee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |