Changeset 16283 for trunk/pstamp/scripts/pstampwebrequest.sh
- Timestamp:
- Feb 1, 2008, 5:42:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampwebrequest.sh (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampwebrequest.sh
r16280 r16283 12 12 # 13 13 # Note: there's nothing really web specific about this program. 14 # with the exception that we set up the environment to allow a 15 # random user (in this case apache ) to run ipp programs 16 # 17 # TODO: re-write this in perl 14 18 # 15 19 ### … … 42 46 43 47 # These variables need to be customized for a particular installation 44 BASE_DIR=/export/data1/bills/pstamp45 48 export PSCONFDIR=/export/data0/bills/psconfig 46 49 … … 48 51 export LD_LIBRARY_PATH=/usr/local/lib 49 52 53 WORK_DIR=/export/data1/bills/pstamp/work 54 CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts 55 50 56 #### END LOCAL_CONFIGURATION 51 57 52 WORK_DIR=$BASE_DIR/work53 CMD_DIR=$BASE_DIR/bin54 58 export HOME=$WORK_DIR 55 59 … … 67 71 68 72 69 ## configure IPP 73 ### 74 ### configure IPP 75 ### 70 76 export MANPATH="" 71 77 72 78 source $PSCONFDIR/psconfig.bash default 73 79 80 ### 81 ### Add our command directory to the path. This won't be necessary once the scripts get 82 ### installed in the IPP 83 ### 74 84 PATH=${CMD_DIR}:${PATH} 75 85 … … 149 159 150 160 ### 151 ### TODO: Won't it interfere with pantask's job processing? 152 ### 153 ### Queue jobs for the request 161 ### TODO: Until we have pantasks monitoring the reuest and job table 162 ### run things directly 163 164 165 ### 166 ### Queue the jobs for the request 154 167 ### 155 168 pstampparser_run.pl $request_id 1> $parse_out 2> $parse_err … … 166 179 fi 167 180 168 cat $parse.out169 170 ### for each line in the output add a psJob to the171 172 181 ### 173 182 ### Ok now it's time to build the stamps 183 ### 174 184 175 185 stamp_out=stamp.${out_ext} 176 186 stamp_err=stamp.${err_ext} 177 187 178 echo making stamps > $stamp_err179 180 ### 181 ### Make the stamps 188 echo making stamps for request> $stamp_err 189 190 ### 191 ### Make the stamps by executing each of the jobs 182 192 ### 183 193 pstamp_dorequest.pl $request_id 1>$stamp_out 2>>$stamp_err 184 194 if [[ $? != 0 ]]; then 185 echo makestamps.pl failed195 echo pstamp_do_request.pl failed 186 196 echo STDERR: 187 197 cat $stamp_err … … 192 202 fi 193 203 194 # Success print the output 195 # get the stamp urls 196 cat $stamp_out 204 # Success print the urls 205 pstamptool -listjob -req_id $request_id -simple | awk '{ print $6 ".fits" }' 197 206 198 207 cleanup
Note:
See TracChangeset
for help on using the changeset viewer.
