IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2008, 11:47:19 AM (18 years ago)
Author:
Paul Price
Message:

Added verbose flags to scripts.

File:
1 edited

Legend:

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

    r16247 r16308  
    3737use Pod::Usage qw( pod2usage );
    3838
    39 my ($exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $no_update, $no_op);
     39my ( $exp_tag, $cam_id, $camera, $outroot, $recipe, $dbname, $reduction, $dvodb, $verbose, $no_update,
     40     $no_op );
    4041GetOptions(
    4142           'exp_tag=s'          => \$exp_tag, # Exposure identifier
     
    4748           'reduction=s'       => \$reduction, # Reduction class                       
    4849           'dvodb|w=s'         => \$dvodb,  # output DVO database
     50           'verbose'           => \$verbose,   # Print to stdout
    4951           'no-update'         => \$no_update, # Update the database?
    5052           'no-op'             => \$no_op, # Don't do any operations?
     
    129131    $command .= " -dbname $dbname" if defined $dbname;
    130132    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    131         run(command => $command, verbose => 1);
     133        run(command => $command, verbose => $verbose);
    132134    unless ($success) {
    133135        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    196198        my $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
    197199        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    198             run(command => $command, verbose => 1);
     200            run(command => $command, verbose => $verbose);
    199201        unless ($success) {
    200202            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    208210        my $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
    209211        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    210             run(command => $command, verbose => 1);
     212            run(command => $command, verbose => $verbose);
    211213        unless ($success) {
    212214            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    222224        my $command = "$ppConfigDump -camera $camera -dump-recipe PSASTRO -";
    223225        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    224             run(command => $command, verbose => 1);
     226            run(command => $command, verbose => $verbose);
    225227        unless ($success) {
    226228            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    244246            $command .= " -tracedest $traceDest -log $logDest";
    245247            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    246                 run(command => $command, verbose => 1);
     248                run(command => $command, verbose => $verbose);
    247249            unless ($success) {
    248250                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    274276
    275277            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    276                 run(command => $command, verbose => 1);
     278                run(command => $command, verbose => $verbose);
    277279            unless ($success) {
    278280                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    293295unless ($no_update) {
    294296    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    295         run(command => $fpaCommand, verbose => 1);
     297        run(command => $fpaCommand, verbose => $verbose);
    296298    unless ($success) {
    297299        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.