Hi all, On Mon, 20 Apr 2015 17:02:22 -0500 Andy Bach <afb...@gmail.com> wrote:
> On Mon, Apr 20, 2015 at 3:32 PM, Frank K. <fklei...@gmail.com> wrote: > > > Would someone suggest a solution which would allow me to “open” a > > read/write session to a command line?? > > > perlfaq8.pod > How can I open a pipe both to and from a command? > The IPC::Open2 module (part of the standard perl distribution) is an > easy-to-use approach that internally uses pipe(), fork(), and exec() to do > the job. > Make sure you read the deadlock warnings in its documentation, > though (see IPC::Open2). See "Bidirectional Communication with Another > Process" in perlipc > and "Bidirectional Communication with Yourself" in perlipc > > You may also use the IPC::Open3 module (part of the standard perl > distribution), but be warned that it has a different order of arguments > from IPC::Open2 > (see IPC::Open3). In addition to IPC::Open2 and IPC::Open3 (which may not work too well, especially on Windows) there are also: * https://metacpan.org/release/IPC-Run * https://metacpan.org/release/Expect * https://metacpan.org/search?q=windows%20console - nothing definite here, but I remember the Windows' Console API. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ http://is.gd/KNvczZ - The FSF Announces New Versions of the GPL He says “One and one and one is three”. Got to be good‐looking ’cause he’s so hard to see. — The Beatles, “Come Together” Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/