IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2009, 10:19:40 AM (17 years ago)
Author:
bills
Message:

use a file for the list of arguments for a postage stamp job instead of the database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_job_run.pl

    r24831 r24944  
    118118my $uri = $psjob->{uri};
    119119my $outputBase = $psjob->{outputBase};
    120 my $argString = $psjob->{args};
    121120my $jobType = $psjob->{jobType};
     121#my $argString = $psjob->{args};
    122122
    123123my $jobStatus;
    124124if ($jobType eq "stamp") {
    125     my $command = "$ppstamp -file $uri $outputBase $argString";
     125    open ARGSLIST, "<$uri" or die "failed to open argslist file $uri";
     126    my $argString = <ARGSLIST>;
     127    close ARGSLIST;
     128    chomp $argString;
     129
     130    # XXX: should we do any other sanity checking?
     131    die "arglist file $uri is empty" if !$argString;
     132
     133    my $command = "$ppstamp $outputBase $argString";
    126134    $command .= " -dbname $dbname" if $dbname;
    127135    $command .= " -dbserver $dbserver" if $dbserver;
Note: See TracChangeset for help on using the changeset viewer.