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

Location:
trunk/ippScripts/scripts
Files:
2 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;
  • 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.