From: Austin S. <te...@of...> - 2002-09-01 08:48:24
|
On Fri, Aug 30, 2002 at 04:43:14PM -0700, Heidi Ng wrote: > > Hi, > > I have written a script which spawns an expect session and returns to it after doing some other stuff. However, when I go back to the first expect session, it seems like I cannot talk to it anymore. > > I tried doing a "print $session "stop\r";". But nothing happened and the test got stuck. Do you know if there is a timeout to a spawned expect session and what I can do to get around this problem? > There is no timeout, though some applications can time out, e.g. telnetting to a cisco router, or using cu to dial out disagreeable modems. What program are you spawning? Would it be a reasonable likelihood that that program would time out of its own accord? Austin |