in reply to Re^4: open2 with windows diskpart
in thread open2 with windows diskpart

Then I guess yours isn't line buffered. You'll need to convince diskpart it's talking to a terminal.

Replies are listed 'Best First'.
Re^6: open2 with windows diskpart
by wxfield (Novice) on Jun 17, 2009 at 12:48 UTC

    I stepped thru my run of your example and it makes it through to the waitpid, but doesn't complete. I tried waiting for the $pid with &WNOHANG, but it still appears to hang. Since it kinda goes into a black-hole and I can't see what its actually hanging on, I don't know quite how to handle this. I tried this on 32/64b 2008 and I get the same results. 5.8.824. I can try upgrading to a newer 5.10 build if you think that will get this working..it will also serve me well to build a case for using newer Perl builds with the curmudgeon that insists 5.8.8 is the only build that "works properly".