Hello list,
How should I go about setting a timeout for a section of code? I've
written some code to do a whois on a few hosts. Sometimes, it stay's on
one host for a few minutes, trying to connect to the whois server.
Here's the code:
foreach my $h(@list) {
my $result = `whois $h`;
}
Is there any way to add, say a 30 second timeout to this? I've looked at
the man pages for whois, and there doesn't appear to be any way to set a
timeout in the whois command.
Thanks,
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]