Does anybody can assist me with open3()?
It is require correct STDIN, STDOUT, STDERR, exit code, child process's manipulation, correct zombies cleanup, disable child(s) buzz
Yes, I'm using IPC::Open3.
I wrote such code to be able to run different commands, pass them need data into STDIN, and store their STDOUT and STDERR. and exam various exit codes:
sub _run {
my $cmd = shift; # CMD to execute as plain string
my $input = shift; # CMD STDIN data
There's a lot of code in there. When you say that it fails, what do you mean? The command doesn't execute at all? You can't write to/read from its input/output streams? The fork fails? You'll have to give more details about what's happening.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.