IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22421


Ignore:
Timestamp:
Feb 23, 2009, 3:20:50 PM (17 years ago)
Author:
Paul Price
Message:

Need to get the program before we call system.

File:
1 edited

Legend:

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

    r22420 r22421  
    2727use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt );
    2828use Pod::Usage qw( pod2usage );
     29
     30# Look for programs we need
     31my $missing_tools;
     32my $regtool = `which regtool` or (warn "Can't find regtool" and $missing_tools = 1);
     33my $ppStats = `which ppStats` or (warn "Can't find ppStats" and $missing_tools = 1);
     34my $ppStatsFromMetadata = `which ppStatsFromMetadata` or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
     35chomp $regtool;
     36chomp $ppStats;
     37chomp $ppStatsFromMetadata;
    2938
    3039my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op, $logfile);
     
    5867
    5968my $RECIPE = "REGISTER"; # Recipe to use for ppStats
    60 
    61 # Look for programs we need
    62 my $missing_tools;
    63 my $regtool = `which regtool` or (warn "Can't find regtool" and $missing_tools = 1);
    64 my $ppStats = `which ppStats` or (warn "Can't find ppStats" and $missing_tools = 1);
    65 my $ppStatsFromMetadata = `which ppStatsFromMetadata` or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
    66 chomp $regtool;
    67 chomp $ppStats;
    68 chomp $ppStatsFromMetadata;
    69 
    7069
    7170if ($missing_tools) {
Note: See TracChangeset for help on using the changeset viewer.