in reply to IIS 6 and perl 5.8 pipes
Of course, you can't read and print to more without getting slightly more complicated, namely IPC::Open2open MORE,"|more" or die "wtf hax:$!"; open HELP,"help|" or die"more hax:$!"; print MORE <HELP>;
And of course, all the usual fun of deadlocks and such can apply, but if you're just doing basic shell linear direction it shouldn't be a problem.use IPC::Open2; open HELP,"help|" or die"more hax:$!"; open2(MORE_READ,MORE_WRITE,'more'); print MORE_WRITE <HELP>; close MORE_WRITE; #send eof so the program will give us stdout print <MORE_READ>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: IIS 6 and perl 5.8 pipes
by vek (Prior) on Jun 20, 2004 at 18:35 UTC |