
g0hl1n
New User
Jan 31, 2012, 1:58 AM
Post #1 of 1
(932 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? Thanks, g0hl1n
|