anaki has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I tried writing a script that runs an interactive shell (for example, a telnet or FTP prompt) and manages it's input and output. However, I was soon stuck under how to manage STDIN and STDOUT to that process. IO::Pty looks promising, but isn't supported in Windows ActiveState. IO::React is supported, but needs a filehandle already connected to that process.

Is there a Windows ActiveState alternative to IO::Pty?

Thank you very much,
anaki
  • Comment on Filehandle to interactive process on Windows AS Perl

Replies are listed 'Best First'.
Re: Filehandle to interactive process on Windows AS Perl
by BrowserUk (Patriarch) on Dec 31, 2008 at 23:03 UTC
      Thank you very much for your responses!
      I'm experiementing with Win32::Socketpair and it looks promising, so thank you, again.
      It's good to know there is still some hope in IO::Pty. I think I'd miss Active's PPM, though.

      -anaki
Re: Filehandle to interactive process on Windows AS Perl
by tilly (Archbishop) on Dec 31, 2008 at 22:26 UTC
    Try installing Strawberry Perl and see if you can get IO::Pty working there. If so you could either switch versions of Perl or try copying the modules (and compiled C code, etc) from Strawberry to AS. From what I've heard this is not formally supported but usually works.