Help for this page

Select Code to Download


  1. or download this
    $host = '127.0.0.1';
    my $output = `ping $host`;
    print "ping result $output\n";
    
  2. or download this
    ping result
    Pinging 127.0.0.1 with 32 bytes of data:
    ...
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum =  0ms, Average =  0ms