From: Blackstone, J. D. <jda...@ci...> - 2002-07-19 13:35:04
|
I couldn't seem to get Net::Telnet to work with Expect. Any pointers? Alternatively, it has since occurred to me that just creating a socket (or IO::Socket) would probably work just as well and would also avoid spawning a process. jdb > -----Original Message----- > From: Roland Giersig [mailto:RGi...@cp...] > Sent: Friday, July 19, 2002 4:56 AM > To: Alexander Bourov > Cc: exp...@li... > Subject: Re: [Expectperl-discuss] Executing perl/expect script in > background. > > > Quoting Alexander Bourov <ab...@en...>: > > I have a strange situation: > > when I try to execute the perl/expect script ( which spawns the > > telnet ) in a background mode, say abc.pl & > > it hung. The ps shows actually two procecces and i have to > use kil -9 > > to kill them. Any idea what might be happening? > > Looks like somebody is trying to read from its controlling tty, > probably telnet. Are you aware of the Net::Telnet package? > Switching > to that instead of spawning another process is much more > efficient and > simpler and thus may solve your problem. > > Hope this helps, > > Roland > -- > RGi...@cp... > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > |