IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Added verbose flags to scripts.

File:
1 edited

Legend:

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

    r16196 r16308  
    3434    );
    3535
    36 my ($cache, $exp_id, $exp_tag, $dbname, $no_update, $no_op);
     36my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op);
    3737GetOptions(
    3838    'caches'        => \$cache,
     
    4040    'exp_tag|t=s'   => \$exp_tag,
    4141    'dbname|d=s'    => \$dbname, # Database name   
     42    'verbose'       => \$verbose,   # Print to stdout
    4243    'no-update'     => \$no_update,
    4344    'no-op'         => \$no_op,
     
    126127    $command .= " -dbname $dbname" if defined $dbname;
    127128    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    128         cache_run(command => $command, verbose => 1);
     129        cache_run(command => $command, verbose => $verbose);
    129130    unless ($success) {
    130131        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
     
    176177unless ($no_update) {
    177178    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    178         cache_run(command => $command, verbose => 1);
     179        cache_run(command => $command, verbose => $verbose);
    179180    unless ($success) {
    180181        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
Note: See TracChangeset for help on using the changeset viewer.