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/stack_skycell.pl

    r16247 r16308  
    3434use Pod::Usage qw( pod2usage );
    3535
    36 my ($stack_id, $dbname, $workdir, $no_update, $no_op, $save_temps);
     36my ($stack_id, $dbname, $workdir, $verbose, $no_update, $no_op, $save_temps);
    3737GetOptions(
    3838    'stack_id|d=s'      => \$stack_id, # Stack identifier
    3939    'dbname|d=s'        => \$dbname, # Database name
    4040    'workdir|w=s'       => \$workdir,   # Working directory, for output files
     41    'verbose'           => \$verbose,   # Print to stdout
    4142    'no-update'         => \$no_update, # Don't update the database?
    4243    'no-op'             => \$no_op, # Don't do any operations?
     
    7677    $command .= " -dbname $dbname" if defined $dbname;
    7778    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    78         run(command => $command, verbose => 1);
     79        run(command => $command, verbose => $verbose);
    7980    unless ($success) {
    8081        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    181182    $command .= " -tracedest $traceDest -log $logDest";
    182183
    183     # print "\n\nWARNING: Convolving to 1 arcsec FWHM seeing!\n\n";
    184     print "\n\nWARNING: NOT Convolving!\n\n";
    185 
    186184    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    187         run(command => $command, verbose => 1);
     185        run(command => $command, verbose => $verbose);
    188186    unless ($success) {
    189187        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    217215       
    218216        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    219             run(command => $command, verbose => 1);
     217            run(command => $command, verbose => $verbose);
    220218        unless ($success) {
    221219            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    230228
    231229        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    232             run(command => $command, verbose => 1);
     230            run(command => $command, verbose => $verbose);
    233231        unless ($success) {
    234232            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.