Help for this page

Select Code to Download


  1. or download this
    $hostname = `hostname`;
    print "hostname is $hostname\n";
    
  2. or download this
    $source = `ypcat hosts | grep '$hostname$'`;
    $source =~ /\d+.\d+.\d+.\d/;
    print "source is $addr\n";