Help for this page

Select Code to Download


  1. or download this
       switch($action) {
          case /adminpass(,|$)/ {
    ...
          } # end case /buildhostsdell/
    ...
    }
    
  2. or download this
          if ($action=~/adminpass(,|$)/) {
             print "Do adminpass ($hostname)\n" if($verbose || $debug);
    ...
             push @t,threads->new(\&buildhostsdell);
          } # end case /buildhostsdell/
    ...
    
  3. or download this
     
    # create a list of the command names and the subroutines they call 
    my %cmds=(adminpass      =>\&adminpass,
    ...
            print "Command $cmd unknown\n"; 
          } 
    }