CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Timeout SSH Command in Threads


New User

Jan 31, 2012, 1:58 AM

Post #1 of 1 (2064 views)
Timeout SSH Command in Threads Can't Post

Hey everybody,

I have a problem with timeouts in threads.
I'm using Net::SSH::Perl with Thread::Pool in a script (which runs as daemon).
There I'd like to set a timeout for the SSH command execution.
The problem is that an timeout realized with eval & alarm fires through all evals and quits the script with the output "Alarm clock".
Has anybody faced this issue too? Has anybody a solution for this issue?

I've spent a lot of time searching some books and the web but I wasn't able to find anything.

So please can anybody help me?



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives