One other thing that I noticed is that in your while loop over your commands you are calling the expect method with the 600 sec timeout before the send method. Perhaps it is still using a default timeout?
In reply to Re^3: My Perl/Expect script aborts when sftp connection stalls at remote destination
by zow
in thread My Perl/Expect script aborts when sftp connection stalls at remote destination
by c84032002
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |