IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33067


Ignore:
Timestamp:
Jan 9, 2012, 6:01:01 PM (14 years ago)
Author:
bills
Message:

add option to change the path_base to a particular directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/runchipimfile.pl

    r31942 r33067  
    1616
    1717my $dbname = "gpc1";
    18 my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps);
     18my ($chip_id, $class_id, $threads, $update, $redirect, $pretend, $save_temps, $outdir);
    1919
    2020my $zaplog;
     
    2727    'zaplog'            => \$zaplog,
    2828    'redirect-output'   => \$redirect,
     29    'outdir=s'          => \$outdir,
    2930    'update'            => \$update,
    3031    'dbname=s'          => \$dbname,
     
    7374} else {
    7475    die "unexpected chipRun.state found: $state\n";
     76}
     77
     78if ($outdir) {
     79    my $base = basename($path_base);
     80    $path_base = "$outdir/$base";
    7581}
    7682
Note: See TracChangeset for help on using the changeset viewer.