IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2008, 11:37:23 AM (18 years ago)
Author:
bills
Message:

changes to allow the web interface to work with pantasks sequencing
the requests

File:
1 edited

Legend:

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

    r16899 r16959  
    4242                       );
    4343
     44use Cwd;
     45
    4446my $missing_tools;
    4547
     
    5456}
    5557
    56 
    5758# if -list is used, it must be the first argument
    5859my $listMode;
     
    6364}
    6465
    65 my $request_file = "request_file.$$.fits";
     66my $cur_dir = getcwd();
     67my $request_file = "$cur_dir/request_file.$$.fits";
    6668{
    6769    my $command = "$pstamprequest $request_file @ARGV";
     
    7375    }
    7476}
    75 
    7677
    7778# ok at this point we have a request file add it to the database (unless we're in listMode)
     
    9596{
    9697
    97     my $command = "$pstamptool -addreq -uri $request_file";
     98    my $command = "$pstamptool -addreq -uri $request_file -out_fileset \'pstampresults/web\$REQ_ID\'";
    9899    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    99100        run(command => $command, verbose => $verbosity);
     
    105106}
    106107
    107 # parse the file to queue the jobs
    108 {
    109     my $command = "$pstampparser_run $request_id";
    110     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    111         run(command => $command, verbose => $verbosity);
    112     unless ($success) {
    113         print STDERR @$stderr_buf;
    114         die("Unable to perform pstamparser_run -addreq: $error_code");
    115     }
    116 }
    117 
    118 #                   note: $request_id still has a newline
    119108print "$request_id";
    120109
Note: See TracChangeset for help on using the changeset viewer.