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_exp.pl

    r17803 r17964  
    2525use Pod::Usage qw( pod2usage );
    2626
    27 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op);
     27my $ipprc = PS::IPP::Config->new();
     28
     29my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $logfile);
    2830GetOptions(
    2931    'caches'        => \$cache,
     
    3436    'no-update'     => \$no_update,
    3537    'no-op'         => \$no_op,
     38    'logfile=s'     => \$logfile,
    3639) or pod2usage( 2 );
     40
     41$ipprc->redirect_output($logfile) if $logfile;
    3742
    3843pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
Note: See TracChangeset for help on using the changeset viewer.