DCPM: Newbie: Co-process pattern - examples of.
Simon Waters
Simon at wretched.demon.co.uk
Wed Jul 2 11:48:20 CDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steve Marvell wrote:
> Simon Waters wrote:
>
>
>>I want to write a Perl script that runs another program in parallel,
>>sending commands to its stdin, and parsing its stdout.
>
>
> perldoc IPC::Open2
Thanks Steve,
there are some interesting "you really don't want to use Open2"
documents around, although I fit the minority when;
a) I know output shouldn't be buffered or anything nasty.
b) I have a trivial command to establish if the program is responsive
(finished writing output).
... so I may "get away" with Open2.
If I can master perl syntax <sic> I should have a working prototype by
tomorrow..
Simon
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/AwzSGFXfHI9FVgYRAoWAAKDIvP7OZG2aenZD3TwY/68lq5BzvQCeOxFq
Fkjy/aPhSF/R6cLN3QVR5dg=
=aKlo
-----END PGP SIGNATURE-----
More information about the Devoncornwall-pm
mailing list