Changeset 16959 for trunk/pstamp/scripts/pstamp_webrequest.pl
- Timestamp:
- Mar 12, 2008, 11:37:23 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_webrequest.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_webrequest.pl
r16899 r16959 42 42 ); 43 43 44 use Cwd; 45 44 46 my $missing_tools; 45 47 … … 54 56 } 55 57 56 57 58 # if -list is used, it must be the first argument 58 59 my $listMode; … … 63 64 } 64 65 65 my $request_file = "request_file.$$.fits"; 66 my $cur_dir = getcwd(); 67 my $request_file = "$cur_dir/request_file.$$.fits"; 66 68 { 67 69 my $command = "$pstamprequest $request_file @ARGV"; … … 73 75 } 74 76 } 75 76 77 77 78 # ok at this point we have a request file add it to the database (unless we're in listMode) … … 95 96 { 96 97 97 my $command = "$pstamptool -addreq -uri $request_file ";98 my $command = "$pstamptool -addreq -uri $request_file -out_fileset \'pstampresults/web\$REQ_ID\'"; 98 99 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 99 100 run(command => $command, verbose => $verbosity); … … 105 106 } 106 107 107 # parse the file to queue the jobs108 {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 newline119 108 print "$request_id"; 120 109
Note:
See TracChangeset
for help on using the changeset viewer.
