Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
          push @out_com, "$comm  -mdb $_" for @db;
     }
     print join "\n", @out_com;
    
  2. or download this
    $ perl commands.pl
    HPRMCLI exch create -s EXCHDAGNODE1   -mdb db1
    HPRMCLI exch create -s EXCHDAGNODE1   -mdb db2
    ...
    HPRMCLI exch unmount   -mdb db2
    HPRMCLI exch remove   -mdb db1
    HPRMCLI exch remove   -mdb db2
    
  3. or download this
    for my $database (@db) {
          push @out_com, "$_  -mdb $database" for @commands;
    }
    
  4. or download this
    $ perl commands.pl
    HPRMCLI exch create -s EXCHDAGNODE1   -mdb db1
    ...
    HPRMCLI exch validate  -level Full  -mdb db2
    HPRMCLI exch unmount   -mdb db2
    HPRMCLI exch remove   -mdb db2
    
  5. or download this
    for my $comm (@commands) {
         print "$comm  -mdb $_ \n" for @db;
     }