IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 5, 2008, 6:04:27 PM (18 years ago)
Author:
Paul Price
Message:

Adding verbosity switch.

File:
1 edited

Legend:

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

    r15689 r16331  
    4444
    4545# Parse the command-line arguments
    46 my ($magic_id, $tess_id, $camera, $ra0, $dec0, $dbname, $workdir, $save_temps, $no_update, $no_op);
     46my ($magic_id, $tess_id, $camera, $ra0, $dec0, $dbname, $workdir, $save_temps, $verbose, $no_update, $no_op);
    4747GetOptions(
    4848           'magic_id=s'    => \$magic_id,   # Magic identifier
     
    5454           'workdir=s'     => \$workdir,    # Working directory, for output files
    5555           'save-temps'    => \$save_temps, # Save temporary files?
     56           'verbose'       => \$verbose,    # Print stuff?
    5657           'no-update'     => \$no_update,  # Don't update the database?
    5758           'no-op'         => \$no_op,      # Don't do any operations?
     
    8889    $command .= " -dbname $dbname" if defined $dbname;
    8990    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    90         run(command => $command, verbose => 1);
     91        run(command => $command, verbose => $verbose);
    9192    unless ($success) {
    9293        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    105106}
    106107
    107 generate_skycells($ipprc, $tess_id, \@skycells, $workdir) or
     108generate_skycells($ipprc, $tess_id, \@skycells, $workdir, $verbose) or
    108109    &my_die("Unable to generate skycells", $magic_id, $PS_EXIT_PROG_ERROR);
    109110
     
    213214    unless ($no_update) {
    214215        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    215             run(command => $command, verbose => 1);
     216            run(command => $command, verbose => $verbose);
    216217        unless ($success) {
    217218            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.