IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 24, 2019, 2:57:20 AM (7 years ago)
Author:
cclin33
Message:

update for addstar tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/minidvodb_createdb.pl

    r38584 r41213  
    3838    exit($PS_EXIT_CONFIG_ERROR);
    3939}
    40 
    41 my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $camera,  $verbose, $no_update,
     40my (  $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $minidvodb_host, $camera,  $verbose, $no_update,
    4241     $no_op, $redirect, $save_temps);
    4342GetOptions(
     
    5049    'interval|w=s'      => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day)
    5150    'num|w=s'      => \$minidvodb_nums, #interval between creation of minidvodbs (default = 500 addRuns)
     51    'minidvodb_host|w=s'  => \$minidvodb_host, #assign a hostname for addstar
    5252    'verbose'           => \$verbose,   # Print to stdout
    5353    'no-update'         => \$no_update, # Update the database?
     
    164164    &my_die( "Unable to get listminidvodbrun",$minidvodb_group, $PS_EXIT_SYS_ERROR) unless $success2;
    165165  # if it didn't list something in active state (what?) then we definitely need to create a new one
    166     if (defined(@$stdout_buf2)) {
     166    if ((@$stdout_buf2)) {
    167167  my  $metadata2 = $mdcParser->parse(join "", @$stdout_buf2) or
    168168        &my_die("Unable to parse metadata config", $minidvodb_group, $PS_EXIT_PROG_ERROR);
     
    196196    &my_die( "Unable to get checkminidvodbunaddrun", $minidvodb_group, $PS_EXIT_SYS_ERROR) unless $success3;
    197197
    198     if (defined(@$stdout_buf3)) {  #checkminidvodb returns nothing IF there have been no addruns added to the db yet
     198    if ((@$stdout_buf3)) {  #checkminidvodb returns nothing IF there have been no addruns added to the db yet
    199199    my  $metadata3 = $mdcParser->parse(join "", @$stdout_buf3) or
    200200        &my_die("Unable to parse metadata config", $minidvodb_group, $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.