From: Roland G. <RGI...@cp...> - 2003-05-02 17:10:35
|
>> You can Expect-ize a Net::Telnet object by doing something like >> >>$Expect::Exp_Internal = 1; >> >>$t = new Net::Telnet(); >>$t->open($host); >>$t->login($name, $pass); >> >>$e = Expect->exp_init($t); >> >>print $e "ls\r"; >> >>$e->expect(60, $prompt); >> > That looks great ... I'll give it a shot. > > A suggestion ... I think it may be helpful for others to put an example > like this in the Expect man page. OK, if you can provide a running example, I'll be glad to include it in the FAQs... :o) Roland |