Well, there's a 'timeout' parameter associated with both the new and capture2 methods, so my guess was that the first timeout dealt with establishing the connection and the second dealt with running the command.
Alarm looks like it should work for me. I will give it a try. I didn't want to fork as I don't think having a bunch of zombie processes in existance would be much better. And if I first waited for the forked process to complete, then I wouldn't be any better off than I am now.
In reply to Re^2: Net::OpenSSH cmd not timing out as requested
by Only1KW
in thread Net::OpenSSH cmd not timing out as requested
by Only1KW
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |