IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2010, 10:05:43 AM (16 years ago)
Author:
eugene
Message:

merge from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/tools/makedistdest

    r29237 r30102  
    1313
    1414my $prod_name;
     15my $dbhost;
    1516
    1617GetOptions(
    1718           'prod_name=s'     => \$prod_name,
     19           'dbhost=s'        => \$dbhost,
    1820) or pod2usage( 2 );
    1921
    2022pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    21 pod2usage( -msg => "Required options: --prod_name",
     23pod2usage( -msg => "Required options: --prod_name --dbhost",
    2224           -exitval => 3)
    23     unless defined $prod_name; 
     25    unless defined $prod_name
     26    and defined $dbhost; 
    2427
    2528my $cmd = "dsprodtool --add $prod_name --type ipp-dist --description $prod_name";
     
    3134die "dsprodtool failed: $rc" if $rc;
    3235
    33 $cmd = "disttool -dbname gpc1 -definedestination -ds_dbname ippRequestServer -ds_dbhost ippdb02 -name $prod_name";
     36$cmd = "disttool -dbname gpc1 -definedestination -ds_dbname ippRequestServer -ds_dbhost $dbhost -name $prod_name";
    3437
    3538$rc = system $cmd;
Note: See TracChangeset for help on using the changeset viewer.