in reply to IIS 6 and perl 5.8 pipes

No idea about IIS and pipes, but perhaps you could try:
open MORE,"|more" or die "wtf hax:$!"; open HELP,"help|" or die"more hax:$!"; print MORE <HELP>;
Of course, you can't read and print to more without getting slightly more complicated, namely IPC::Open2
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>;
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.

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