IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19634


Ignore:
Timestamp:
Sep 21, 2008, 9:21:14 PM (18 years ago)
Author:
eugene
Message:

handle files with spaces in the names

File:
1 edited

Legend:

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

    r16920 r19634  
    8181    my ( $vol, $path, $name ) = File::Spec->splitpath( $absfile );
    8282    my ( $exp_name ) = $name =~ /(.*)\.(fits|fit|fts)(|.gz)/;
     83    $exp_name =~ s|\s|_|g;
    8384
    8485    my $relfile = $ipprc->convert_filename_relative( $absfile );
     
    113114    $command_imfile .= " -exp_id $exp_id";
    114115    $command_imfile .= " -tmp_class_id fpa";
    115     $command_imfile .= " -uri $relfile";
     116    $command_imfile .= " -uri '$relfile'";
    116117    $command_imfile .= " -dbname $dbname" if defined ($dbname);
    117118   
Note: See TracChangeset for help on using the changeset viewer.