IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24640


Ignore:
Timestamp:
Jul 2, 2009, 9:35:30 AM (17 years ago)
Author:
bills
Message:

Need to tell file_resolve to create output file if it doesn't exist and check that it succeeded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/publish_file.pl

    r24512 r24640  
    136136    my $zp = $zp{$comp};
    137137    if ($product eq "IPP-MOPS") {
    138         my $out = $ipprc->file_resolve( "$outroot.$comp.fits" );
     138        my $outuri = "$outroot.$comp.fits";
     139        my $out = $ipprc->file_resolve( $outuri, 'create' ) or
     140            &my_die( "Unable to resolve output file $outuri", $pub_id, $PS_EXIT_SYS_ERROR);
     141
    139142        my $command = "$ppMops $file $zp $out";
    140143        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.