in reply to Script hangs when called via IPC::Open3

Unless you are committed to open3 for some reason, I'd suggest looking at using IPC::Run insead. It can do as much as open3 does and more, and doesn't have the buffer management issues that you are seeing.

HTH,

--DrWhy

"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

  • Comment on Re: Script hangs when called via IPC::Open3

Replies are listed 'Best First'.
Re^2: Script hangs when called via IPC::Open3
by codeacrobat (Chaplain) on Jun 28, 2006 at 06:20 UTC
    I suggest IPC::Run3.
    perl -MIPC::Run3 -lw run3('./script.pl',undef,\$out,\$err); print "STDOUT: $out"; print "STDERR: $err" __END__