in reply to IPC::Open3 STDIN never sees eof on win32?
You child is suffering from buffering, this works for me (wait hangs, probably a bug)
perl -MIPC::Open3 -e " open3(\*IN,q{>&STDOUT},q{>&STDERR},qw[perl -pe +1 ]); print IN 666,$/; close IN; sleep 3 "
For some stuff see Does IO::Select work? Anywhere?, Bidirectional IPC with Expect and Passthrough, Windows, threads and IPC::Open3, IPC::Open3 failure on Win32, win32 open3 strangeness, IPC::Open3 and Win32
And maybe also waitpid on Win32 ... wait forever, wait is broken on win32?
If you don't need interactivity IPC::Run3 works well enough
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IPC::Open3 STDIN never sees eof on win32?
by Anonymous Monk on Dec 05, 2012 at 08:49 UTC | |
by Yary (Pilgrim) on Dec 05, 2012 at 12:11 UTC | |
by bulk88 (Priest) on Dec 05, 2012 at 19:35 UTC | |
by Yary (Pilgrim) on Dec 06, 2012 at 15:16 UTC |