Changeset 20119
- Timestamp:
- Oct 13, 2008, 3:23:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/register_exp.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_exp.pl
r20101 r20119 17 17 use Storable qw( freeze thaw ); 18 18 use File::Basename qw( basename ); 19 use File::Temp qw( tempfile ); # tools to construct temp files 19 20 use IPC::Cmd 0.36 qw( can_run run ); 20 21 use PS::IPP::Metadata::Config; … … 26 27 my $ipprc = PS::IPP::Config->new(); 27 28 28 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $ logfile);29 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $save_temps, $logfile); 29 30 GetOptions( 30 31 'caches' => \$cache, … … 35 36 'no-update' => \$no_update, 36 37 'no-op' => \$no_op, 38 'save-temps' => \$save_temps, # Save temporary files? 37 39 'logfile=s' => \$logfile, 38 40 ) or pod2usage( 2 ); … … 52 54 # Look for commands we need 53 55 my $missing_tools; 54 my $regtool = can_run('regtool') 55 or (warn "can't find regtool" and $missing_tools = 1);56 my $regtool = can_run('regtool') or (warn "can't find regtool" and $missing_tools = 1); 57 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 56 58 57 59 if ($missing_tools) { … … 65 67 default_expires => '7200 sec', 66 68 ); 69 70 my $cmdflags; 67 71 68 72 # Get the list of imfiles & their stats … … 99 103 $cmdflags .= " $line"; 100 104 } 105 chomp $cmdflags; 101 106 } 102 107
Note:
See TracChangeset
for help on using the changeset viewer.
