IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2008, 1:57:57 PM (18 years ago)
Author:
bills
Message:

added --logfile

File:
1 edited

Legend:

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

    r17937 r17964  
    2828use Pod::Usage qw( pod2usage );
    2929
    30 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op);
     30my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op, $logfile);
    3131GetOptions(
    3232    'caches'           => \$cache,
     
    3535    'tmp_exp_name|n=s' => \$tmp_exp_name,
    3636    'uri|u=s'          => \$uri,
    37     'dbname|d=s'       => \$dbname,# Database name
     37    'dbname|d=s'       => \$dbname,    # Database name
    3838    'verbose'          => \$verbose,   # Print to stdout
    3939    'no-update'        => \$no_update,
    4040    'no-op'            => \$no_op,
     41    'logfile=s'        => \$logfile,
    4142) or pod2usage( 2 );
     43
     44$ipprc->redirect_output($logfile) if $logfile;
    4245
    4346pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
     
    4851    defined $tmp_exp_name and
    4952    defined $uri;
     53
    5054
    5155my $RECIPE = "REGISTER"; # Recipe to use for ppStats
Note: See TracChangeset for help on using the changeset viewer.