IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18994


Ignore:
Timestamp:
Aug 8, 2008, 5:15:33 PM (18 years ago)
Author:
eugene
Message:

adding notes and camera stage

File:
1 edited

Legend:

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

    r18359 r18994  
    143143}
    144144
     145# choice of files to delete depends on the stage
     146if ($stage eq "camera") {
     147    # this stage uses 'camtool'
     148    my $camtool = can_run('camtool') or die "Can't find camtool";
     149
     150    # Get list of component imfiles
     151    # XXX may need a different my_die for each stage
     152    my $imfiles;                      # Array of component files
     153    my $command = "$camtool -pendingcleanupexp -cam_id $stage_id"; # Command to run
     154    $command .= " -dbname $dbname" if defined $dbname;
     155    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = run(command => $command, verbose => $verbose);
     156    unless ($success) {
     157        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     158        &my_die("Unable to perform camtool: $error_code", "cam", $stage_id, $error_code);
     159    }
     160    my $metadata = $mdcParser->parse(join "", @$stdout_buf) or
     161        &my_die("Unable to parse metadata config doc", "cam", $stage_id, $PS_EXIT_PROG_ERROR);
     162
     163    exit 0;
     164}
     165
     166# fake : faketool : -pendingcleanupimfile (loop over imfiles)
     167# warp : warptool : -pendingcleanupskyfile (loop over skyfiles)
     168
    145169die "unknown stage for ipp_cleanup.pl\n";
    146170exit 1;
Note: See TracChangeset for help on using the changeset viewer.