IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15481


Ignore:
Timestamp:
Nov 6, 2007, 2:45:56 PM (19 years ago)
Author:
Paul Price
Message:

Using workdir from database.

File:
1 edited

Legend:

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

    r15480 r15481  
    1313
    1414my ($dbname,                    # Database name to use
    15     $workdir,                   # Working directory
    1615    $no_op,                     # No operations?
    1716    $no_update,                 # No updating?
     
    1918GetOptions(
    2019           'dbname|d=s' => \$dbname,
    21            'workdir|w=s' => \$workdir,
    2220           'no-op' => \$no_op,
    2321           'no-update' => \$no_update,
     
    6664            my $uri = $item->{uri};
    6765            my $reduction = $item->{reduction};
     66            my $workdir = $item->{workdir};
    6867           
    6968            my $command = "$chip --chip_id $chip_id --exp_id $exp_id --exp_tag $exp_tag --class_id $class_id --uri $uri --dbname $dbname --camera $camera";
     
    7170            $command .= " --no-op" if defined $no_op;
    7271            $command .= " --no-update" if defined $no_update;
    73             $command .= " --workdir $workdir" if defined $workdir;
     72            $command .= " --workdir $workdir" if defined $workdir and $workdir ne "NULL";
    7473            my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    7574                run( command => $command, verbose => 1 );
Note: See TracChangeset for help on using the changeset viewer.