Help for this page

Select Code to Download


  1. or download this
    my $output = `ping $host`;
    
  2. or download this
    print "ping result $output\n";
    
  3. or download this
    Reply from 10.58.188.11: bytes=32 time=61ms TTL=123 Reply from 10.58.1
    +88.11: bytes=32 time=146ms TTL=123 Reply from 10.58.188.11: bytes=32 
    +time=60ms TTL=123 Reply from 10.58.188.11: bytes=32 time=60ms TTL=123
    
    Ping statistics for 10.58.188.11:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate r
    +ound trip times in milli-seconds:
        Minimum = 60ms, Maximum =  146ms, Average =  81ms
    
  4. or download this
    Reply from 10.58.188.11: bytes=32 time=61ms TTL=123 
    Reply from 10.58.188.11: bytes=32 time=146ms TTL=123 
    ...
    Ping statistics for 10.58.188.11:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate r
    +ound trip times in milli-seconds:
        Minimum = 60ms, Maximum =  146ms, Average =  81ms