|
From: Maloney, G. <ger...@in...> - 2001-12-04 17:41:38
|
Hello
I installed cgywin on Win 2K and using the latest version of
IO-Tty-0.92_03.tar.gz recommended by Roland I successfully built and
installed Expect-1_12.
In a cywin window or even in a DOS box, I execute the following , but the
spawn command seems to fork off a new session which I cannot see.
How can I get it to work so that the telnet session is active in the current
window ?
Thanks G.
#
# Version 1.0 Date 03.12.01
#
#############
# include files
use Expect;
$callgen= Expect->spawn("telnet x.x.x.x");
$callgen->log_stdout(0);
$callgen->expect(10,'-re',"Login:");
$callgen->send("ger\n");
$callgen->expect(10,'-re',"Password:");
$callgen->send("12345\n");
|