From: Satish P. <sat...@gm...> - 2009-06-11 03:30:12
|
I can not use this solution as I need to ssh and then perform many other tests apart from telnet. So I can not use a single ssh just for telnet. Killing it using PID requires us to login again using another ssh session which is not the requirement, considering that there will be more than 1 telnet tests I will be performing. Sending $exp->send("\003") should work, but I am checking if any other issue is preventing this. On Wed, Jun 10, 2009 at 4:27 PM, Roland Giersig <rgi...@cp...> wrote: > How about directly doing a > > "ssh -t -l $user $line telnet $telnetip $telnetport" > > and using close() (and maybe pid() and kill()) in case of timeout just > as Austin suggested? > > HTH, Roland > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > |