Changeset 16878
- Timestamp:
- Mar 7, 2008, 3:45:20 PM (18 years ago)
- Location:
- trunk/pstamp
- Files:
-
- 2 edited
-
scripts/pstamp_new_request.sh (modified) (1 diff)
-
src/pstampfinish.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_new_request.sh
r16675 r16878 46 46 47 47 # Invoke the data store registration script 48 echo $request_file chip n/a | dsreg -dsdir $DATA_STORE -add -type PSTAMP $PRODUCT$fileset_id48 echo $request_file\|chip | dsreg --add --type PSREQUEST --product $PRODUCT --fileset $fileset_id 49 49 50 50 status=$? -
trunk/pstamp/src/pstampfinish.c
r16593 r16878 238 238 psString command = NULL; 239 239 240 psStringAppend(&command, "dsreg - dsdir %s -add -type PSTAMP %s%s",241 options->ds Root, options->dsProduct, fileset_id);240 psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s", 241 options->dsProduct, fileset_id); 242 242 243 243 printf("command is: %s\n", command); … … 245 245 // open a pipe to dsreg and set up the output fileset 246 246 // Each line of input describes one of the files 247 #define DSREG_FORMAT_STRING "%s chip na\n"247 #define DSREG_FORMAT_STRING "%s|%s\n" 248 248 249 249 FILE *pipe = popen(command, "w"); … … 255 255 256 256 // First the results table that we built above 257 fprintf(pipe, DSREG_FORMAT_STRING, "results.fits" );257 fprintf(pipe, DSREG_FORMAT_STRING, "results.fits", "psresults"); 258 258 259 259 // Next each of the stamps 260 260 for (int i = 0; i < numStamps; i++) { 261 fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i) );261 fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i), "pstamp"); 262 262 } 263 263
Note:
See TracChangeset
for help on using the changeset viewer.
