Changeset 41213 for trunk/ippScripts
- Timestamp:
- Dec 24, 2019, 2:57:20 AM (7 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
addstar_run.pl (modified) (6 diffs)
-
minidvodb_createdb.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/addstar_run.pl
r40803 r41213 44 44 my $minidvodb_path; 45 45 46 my ( $add_id, $camera, $stage, $stage_id, $stage_extra1, $outroot, $stageroot, $dbname, $reduction, $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $image_only, $verbose, $no_update, 47 $no_op, $redirect, $save_temps); 46 my ( $add_id, $camera, $stage, $stage_id, $stage_extra1, $outroot, $stageroot, $dbname, $reduction, 47 $dvodb, $minidvodb, $minidvodb_name, $minidvodb_group, $minidvodb_host, $image_only, $verbose, 48 $no_update, $no_op, $redirect, $save_temps, $dvodbhost); 48 49 GetOptions( 49 50 'add_id=s' => \$add_id, # Camtool identifier … … 66 67 'redirect-output' => \$redirect, 67 68 'save-temps' => \$save_temps, # Save temporary files? 69 'dvodbhost|w=s' => \$dvodbhost, # miniDVO database group 68 70 ) or pod2usage( 2 ); 69 71 70 72 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 71 73 pod2usage( 72 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname ",74 -msg => "Required options: --add_id --camera --outroot --dvodb --stageroot --stage --dbname --dvodbhost", 73 75 -exitval => 3, 74 76 ) unless … … 79 81 defined $dvodb and 80 82 defined $dbname and 83 defined $dvodbhost and 81 84 defined $camera; 82 85 if ($stage =~ /cam/ && !defined $stage_id) { … … 297 300 $minidvodb_path = $comp->{minidvodb_path}; 298 301 $minidvodb_name = $comp->{minidvodb_name}; 299 302 $minidvodb_host = $comp->{minidvodb_host}; 303 300 304 if (!defined($minidvodb_path)) { 301 305 &my_die("Unable to parse minidvodb_path", $add_id, $PS_EXIT_PROG_ERROR); … … 422 426 $fpaCommand .= " -dvodb_path $minidvodb_path" if defined $minidvodb_path; 423 427 $fpaCommand .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; 428 $fpaCommand .= " -minidvodb_host $dvodbhost" if defined $dvodbhost; 424 429 $fpaCommand .= " -dbname $dbname" if defined $dbname; 425 430 … … 458 463 $command .= " -path_base $outroot" if defined $outroot; 459 464 $command .= (" -dtime_addstar " . ((DateTime->now->mjd - $mjd_start) * 86400)); 460 # $command .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; don't think we want it recorded (not sure) 465 $command .= " -minidvodb_name $minidvodb_name" if defined $minidvodb_name; # dont think we want it recorded (not sure) 466 $command .= " -minidvodb_host $dvodbhost" if defined $dvodbhost; # dont think we want it recorded (not sure) 461 467 $command .= " -stage_extra1 $stage_extra1" if defined $stage_extra1; 462 468 $command .= " -dbname $dbname" if defined $dbname; -
trunk/ippScripts/scripts/minidvodb_createdb.pl
r38584 r41213 38 38 exit($PS_EXIT_CONFIG_ERROR); 39 39 } 40 41 my ( $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $camera, $verbose, $no_update, 40 my ( $outroot, $dbname, $dvodb, $minidvodb,$minidvodb_interval, $minidvodb_nums, $minidvodb_group, $minidvodb_host, $camera, $verbose, $no_update, 42 41 $no_op, $redirect, $save_temps); 43 42 GetOptions( … … 50 49 'interval|w=s' => \$minidvodb_interval, #interval between creation of minidvodbs (default = 1day) 51 50 '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 52 52 'verbose' => \$verbose, # Print to stdout 53 53 'no-update' => \$no_update, # Update the database? … … 164 164 &my_die( "Unable to get listminidvodbrun",$minidvodb_group, $PS_EXIT_SYS_ERROR) unless $success2; 165 165 # 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)) { 167 167 my $metadata2 = $mdcParser->parse(join "", @$stdout_buf2) or 168 168 &my_die("Unable to parse metadata config", $minidvodb_group, $PS_EXIT_PROG_ERROR); … … 196 196 &my_die( "Unable to get checkminidvodbunaddrun", $minidvodb_group, $PS_EXIT_SYS_ERROR) unless $success3; 197 197 198 if ( defined(@$stdout_buf3)) { #checkminidvodb returns nothing IF there have been no addruns added to the db yet198 if ((@$stdout_buf3)) { #checkminidvodb returns nothing IF there have been no addruns added to the db yet 199 199 my $metadata3 = $mdcParser->parse(join "", @$stdout_buf3) or 200 200 &my_die("Unable to parse metadata config", $minidvodb_group, $PS_EXIT_PROG_ERROR);
Note:
See TracChangeset
for help on using the changeset viewer.
