IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 20, 2007, 3:26:45 PM (19 years ago)
Author:
Paul Price
Message:

Adding --no-op and --no-update.

File:
1 edited

Legend:

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

    r11846 r11946  
    1414my ($dbname,                    # Database name to use
    1515    $workdir,                   # Working directory
     16    $no_op,                     # No operations?
     17    $no_update,                 # No updating?
    1618    );
    1719GetOptions(
    1820           'dbname|d=s' => \$dbname,
    1921           'workdir|w=s' => \$workdir,
     22           'no-op' => \$no_op,
     23           'no-update' => \$no_update,
    2024) or pod2usage( 2 );
    2125
     
    3943    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    4044        run( command => $command, verbose => 1 );
    41     die "Unable to get phase 3 imfile list: $error_code\n" if not $success;
     45    die "Unable to get phase 3 exposure list: $error_code\n" if not $success;
    4246    $list = parse_md_list( $mdcParser->parse( join( '', @$stdout_buf ) ) ) or
    4347        die "Unable to parse output from p2tool.\n";
     
    4852    my $camera = $item->{camera};
    4953   
    50     my $command = "$phase3 --exp_tag $exp_tag --camera $camera";
     54    my $command = "$phase3 --exp_tag $exp_tag --camera $camera --dbname $dbname";
     55    $command .= " --no-op" if defined $no_op;
     56    $command .= " --no-update" if defined $no_update;
    5157    $command .= " --workdir $workdir" if defined $workdir;
    5258    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.