Help for this page

Select Code to Download


  1. or download this
     ...
     # $addr is the actual subnet, e.g. "192.168.1.0"
     ...
     my $output = qx{nmap -sP ${addr}/24};
     my @nodes= $output =~ /(?<=\s)c\w+\b/g;
    
  2. or download this
     ... 
     print header('text/html');
     print h1('Local Network: '. $addr . '/24');
     print map "$_ appears to be up<br />", @hosts
     ...
    
  3. or download this
     ...
     my ($exe, $cmd) = ('/usr/bin/rsh', 'ps -fl r -u username');
    ...
      ...
      ++$cnt
      ...