in reply to Re: Re: IPC::Open2, Tk, and DOS window
in thread IPC::Open2, Tk, and DOS window
IPC::Open2 always has the child's STDERR go to the parent's STDERR. This may cause problems if the parent no longer has a STDERR.
I'd try using IPC::Open3 and be sure to specify alternates for all three. Note that having the child's STDOUT and STDERR go to separate pipes can lead to deadlock so either send them both to the same pipe or send one or both of them to a file or even:
[ BTW, I think IPC::Open3 should be patched to handle open3( "<nul", ">out.txt", ">err.txt", ... ) (: ] - tye (but my friends call me "Tye")open(NUL,">nul") or die "nul: $!"; open3( ...., \*NUL, ... )
|
---|