Thread timeout in system funktion (6 answers)
Opened by darmon at 2003-09-09 19:34

[E|B]
 2003-09-09 23:35
#49458 #49458
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Hi!

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl

use warnings;
use strict;
use Net::Ping;

my $host = "127.0.0.1"; # IP oder Host
my $p = Net::Ping->new();

print "Unable to reach $host!" unless($p->ping($host, 1));
# 1 Sekunde Timeout

exit;


HTH
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread timeout in system funktion