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

Hello Perl Gurus, my ($pid, $fh) = spawn_pty("telnet localhost"); The above command works fine in Unix Environment as well in Cygwin Perl Environment (On Windows Box). But,what is the equivalent of the above command in Active Perl, where there is no Proc::Spawn IO::tty modules, etc. I need the exact equivalent, as I need to manipulate with the file handle. Thanks in Advance, Skely

Replies are listed 'Best First'.
Re: Equivalent of spawn_pty in ActivePerl.
by Fletch (Bishop) on Mar 31, 2008 at 14:00 UTC

    Ttys and ptys are *NIX / POSIX creatures, so I'd be very doubtful that there's going to be anything for manipulating them in the Win32 Perl. The only reason Cygwin has them is because it's emulating a more POSIX-y environment. Perhaps something like Net::Telnet would work in its place?

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Well, I am basically trying to write an module similar to IO::React (With changes in Pattern Matching). 1) Invoke a 3rdparth Config Executable in console mode. 2) Read the inputs, analyze them, and provide the necessary values. So, I am looking for a windows equivalent of the below command, my ($pid,$fh)=spawn_pty("3rdparty_config_exec -console"); any thoughts folks?