IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20119


Ignore:
Timestamp:
Oct 13, 2008, 3:23:40 PM (18 years ago)
Author:
eugene
Message:

define ppStatsFromMetadata, cmdflags, chomp on cmdflags

File:
1 edited

Legend:

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

    r20101 r20119  
    1717use Storable qw( freeze thaw );
    1818use File::Basename qw( basename );
     19use File::Temp qw( tempfile );                   # tools to construct temp files
    1920use IPC::Cmd 0.36 qw( can_run run );
    2021use PS::IPP::Metadata::Config;
     
    2627my $ipprc = PS::IPP::Config->new();
    2728
    28 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $logfile);
     29my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $save_temps, $logfile);
    2930GetOptions(
    3031    'caches'        => \$cache,
     
    3536    'no-update'     => \$no_update,
    3637    'no-op'         => \$no_op,
     38    'save-temps'    => \$save_temps, # Save temporary files?
    3739    'logfile=s'     => \$logfile,
    3840) or pod2usage( 2 );
     
    5254# Look for commands we need
    5355my $missing_tools;
    54 my $regtool = can_run('regtool')
    55     or (warn "can't find regtool" and $missing_tools = 1);
     56my $regtool = can_run('regtool') or (warn "can't find regtool" and $missing_tools = 1);
     57my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
    5658
    5759if ($missing_tools) {
     
    6567    default_expires => '7200 sec',
    6668);
     69
     70my $cmdflags;
    6771
    6872# Get the list of imfiles & their stats
     
    99103        $cmdflags .= " $line";
    100104    }
     105    chomp $cmdflags;
    101106}
    102107
Note: See TracChangeset for help on using the changeset viewer.