Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl       
            chomp($syshost = `hostname`);
    ...
            print "hostname : $syshost\n";
            print "IP       : $sysip\n";
            print "Netmask  : $sysnm\n";
    
  2. or download this
    EXPECTED RESULT
    hostname : laptop.example.com
    ...
    IP    :         inet 10.10.50.21  netmask 255.255.255.0  destination 1
    +0.10.50.1
    Netmask    :         inet 10.10.50.21  netmask 255.255.255.0  destinat
    +ion 10.10.50.1