Help for this page

Select Code to Download


  1. or download this
    $ping = `ping $host`;
    $nslookup = `nslookup $host`;
    
  2. or download this
    foreach my $host (@hosts) {
      $ping = `ping $host`;
    ...
      print "Ping result is $ping \n";
      print "Nslookup result is $nslookup for host $host \n";
    }