Perl: the Markov chain saw | |
PerlMonks |
Setting Timeout in Image::Grab??by dazz (Beadle) |
on Mar 26, 2017 at 19:35 UTC ( [id://1186001]=perlquestion: print w/replies, xml ) | Need Help?? |
dazz has asked for the wisdom of the Perl Monks concerning the following question:
Hello
I am using Image::Grab to gr1ab images off an IP Camera. That is all working OK. The problem I have is that the timeout for a bad connection is 3minutes but I expect to be grabbing images every 60 seconds. If there is a problem with the camera, I will end up with multiple threads running waiting for an image. I have looked at the documentation here http://search.cpan.org/~mahex/Image-Grab-1.4.2/lib/Image/Grab.pod I need to change the value of Timeout. My code looks like this: Perl debugger spits out the following error message:
My question is how do I change the Timeout property to 5sec?
Back to
Seekers of Perl Wisdom
|
|