From: Austin S. <te...@of...> - 2007-07-11 19:01:55
|
On Wed, Jul 11, 2007 at 10:50:32AM -0500, Matt Zagrabelny wrote: > [...] > > > Does anybody knows why I'm getting this strange behavior ? > > Check the archives. > > From [1] comes: > > >> > While Expect is supposed to be reasonably threadsafe, IO-Tty is *not*, > that's where the problems come from. If you want to automate telnet, > using Net::Telnet with Expect should be possible under threads. > << > > I have had issues getting expect to use a spawned Net::Telnet object as > well (which is "supposed to be" thread safe). After much gnashing of > teeth, i have given up on Expect and been using Net::Telnet alone; which > is disappointing, because Expect is much more powerful and elegant than > Net::Telnet, however many *many* hours were wasted trying to get them to > work together across a diverse population of Cisco gear. > Have you tried using exp_init on a Net::Telnet object? That doesn't use IO::Tty. Austin |