Changeset 41213 for trunk/ippScripts/scripts/minidvodb_createdb.pl
- Timestamp:
- Dec 24, 2019, 2:57:20 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/minidvodb_createdb.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
