IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 8, 2011, 10:39:12 AM (15 years ago)
Author:
bills
Message:

add an option to send the outputs to an alternate output directory (for testing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/runcameraexp.pl

    r29419 r31243  
    1616my $dbname = "gpc1";
    1717my ($cam_id, $update, $redirect, $save_temps, $pretend, $no_verbose);
     18my ($outdir);
    1819
    1920GetOptions(
     
    2223    'redirect-output'   => \$redirect,
    2324    'save-temps'        => \$save_temps,
     25    'outdir=s'          => \$outdir,
    2426    'update'            => \$update,
    2527    'dbname=s'          => \$dbname,
     
    5557
    5658die "Cannot update when run is not faulted\n" if $update and ! $fault;
     59
     60if ($outdir) {
     61    my $base = basename($path_base);
     62    $path_base = "$outdir/$base";
     63    print STDERR "changing path_base to $path_base";
     64    $update = 0;
     65}
    5766
    5867my  $run_state;
Note: See TracChangeset for help on using the changeset viewer.