IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2008, 4:35:57 PM (18 years ago)
Author:
Paul Price
Message:

Using --outroot instead of --workdir.

File:
1 edited

Legend:

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

    r16336 r16746  
    2727my ($dbname,                    # Database name to use
    2828    $verbose,                   # Verbose operations?
     29    $workdir_global,            # Global working directory
    2930    $no_op,                     # No operations?
    3031    $no_update,                 # No updating?
     
    3435           'dbname=s' => \$dbname,
    3536           'verbose' => \$verbose,
     37           'workdir' => \$workdir_global,
    3638           'no-op' => \$no_op,
    3739           'no-update' => \$no_update,
     
    7577        my $workdir = $item->{workdir};
    7678       
    77         my $command = "$stack_skycell --stack_id $stack_id --dbname $dbname";
     79        $workdir = $workdir_global unless defined $workdir and $workdir ne "NULL";
     80        die "No working directory specified.\n" unless defined $workdir;
     81       
     82        my $outroot = caturi( $workdir, "tess_$tess_id", $skycell_id, "$tess_id.$skycell_id.stk.$stack_id" );
     83
     84        my $command = "$stack_skycell --stack_id $stack_id --dbname $dbname --outroot $outroot";
    7885        $command .= " --verbose" if defined $verbose;
    7986        $command .= " --no-op" if defined $no_op;
    8087        $command .= " --no-update" if defined $no_update;
    8188        $command .= " --save-temps" if defined $save_temps;
    82         $command .= " --workdir $workdir" if defined $workdir;
    8389        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    8490            run( command => $command, verbose => 1 );
Note: See TracChangeset for help on using the changeset viewer.