Changeset 28490
- Timestamp:
- Jun 24, 2010, 3:52:39 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/diffphot.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/diffphot.pl
r28428 r28490 252 252 } 253 253 254 unless ($no_update){254 { 255 255 my $command = "$diffphottool -diff_phot_id $diff_phot_id -skycell_id $skycell_id"; 256 256 $command .= " -done -path_base $outroot"; 257 $command .= " -magicked $magicked" if $magicked;257 $command .= " -magicked $magicked" if defined $magicked; 258 258 $command .= " -quality $quality" if defined $quality; 259 259 $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); … … 261 261 $command .= " -dbname $dbname" if defined $dbname; 262 262 263 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 264 run(command => $command, verbose => $verbose); 265 unless ($success) { 266 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 267 &my_die("Command failed: $error_code", $diff_phot_id, $skycell_id, $error_code); 263 unless ($no_update) { 264 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 265 run(command => $command, verbose => $verbose); 266 unless ($success) { 267 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 268 &my_die("Command failed: $error_code", $diff_phot_id, $skycell_id, $error_code); 269 } 270 } else { 271 print "Skipping update: $command\n"; 268 272 } 269 273 }
Note:
See TracChangeset
for help on using the changeset viewer.
