May 4, 2012, 5:02 PM
Post #1 of 3
I am having a problem where the timeout on Expect appears to work as a delay rather than a timeout.
Net::SCP::Expect and timeout
Is there a way to make the timeout expire if the pattern is matched?
my $scpe = Net::SCP::Expect->new(
auto_yes => 1
For some reason the speed of my connection is controled by the timeout. Timeout of 1 is quicker, but of course, then you run the problem that it might indeed timeout too soon. I want to use a long timeout but quit as soon as the pattern match is made.