Changeset 16976 for trunk/pstamp/scripts/pstamp_listjobs.pl
- Timestamp:
- Mar 13, 2008, 11:40:35 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_listjobs.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_listjobs.pl
r16959 r16976 68 68 if (@$stdout_buf == 0) { 69 69 print STDERR "no pstamp jobs for request $request_id\n"; 70 exit 1;70 exit 0; 71 71 } 72 72 my $metadata = $mdcParser->parse(join "", @$stdout_buf) or … … 79 79 80 80 if (! @psjobs) { 81 print STDERR "no postage stamp jobs for request $request_id found\n";81 print STDERR "no postage stamp jobs for request $request_id\n"; 82 82 exit 0; 83 83 } … … 86 86 # 87 87 # convert from filename to data store relative uri 88 # XXX arguably we shouldn't do this here. this should be a function89 # of the web interface. But since this script is only used by90 # the web interface ....88 # XXX arguably we shouldn't do this here. 89 # This should be a function of the web interface. However, since this script 90 # is only used by the web interface .... 91 91 my $i = index($job->{outputBase}, "dsroot/"); 92 93 my $add_fits = 0; 94 if ($job->{jobType} ne "get_image") { 95 $add_fits = 1; 96 } 92 97 93 98 my $uri; 94 99 if ($i > 0) { 95 $uri = "/ds" . substr($job->{outputBase}, $i + 6) . ".fits";100 $uri = "/ds" . substr($job->{outputBase}, $i + 6); 96 101 } else { 97 $uri = "$job->{outputBase}" . ".fits"; 102 $uri = "$job->{outputBase}"; 103 } 104 105 if ($add_fits) { 106 $uri .= ".fits"; 98 107 } 99 108
Note:
See TracChangeset
for help on using the changeset viewer.
