>$p = Net::Ping->new("icmp");
>@host_array=("118.16.3.120","118.16.3.130","118.16.3.25","118.16.3.19
");
>foreach $host (@host_array)
di perldoc Net::Ping , metoda icmp butuh akses root, or setuid root
ini saya copy pastein ya dari perldocnya ?
If the "icmp" protocol is specified, the ping() method sends an
icmp echo message to the remote host, which is what the UNIX
ping program does. If the echoed message is received from the
remote host and the echoed information is correct, the remote
host is considered reachable. Specifying the "icmp" protocol
requires that the program be run as root or that the program be
setuid to root.
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]