From: <RGi...@a1...> - 2002-03-05 11:14:40
|
> I'm still having a problem trying to "send" from inside a timeout > condition: Oh, sorry for that mistake: as the timeout is shared among all matches (which could be on different spawned programs), its callback doesn't get an expect object, you have to use one from the outer context, i.e. my $exp = new Expect; $exp->raw_pty(1); $exp->spawn(...); $exp->expect($timeout, ... [ timeout => sub { $exp->send() }]); Hope this helps, Roland -- RGi...@cp... |