Changeset 24124

Show
Ignore:
Timestamp:
08.06.2011 16:04:52 (8 years ago)
Author:
ak19
Message:

Sam worked out that pdftohtml was being launched without quotes around the perl path used to run it. There wre more places that required the quotes. Professor Witten discovered the problem with the CD binary.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gsConvert.pl

    r24103 r24124  
    414414    my $cmd = ""; 
    415415    my $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 
    416     $cmd .= "$full_perl_path -S ppttohtml.pl "; 
     416    $cmd .= "\"$full_perl_path\" -S ppttohtml.pl "; 
    417417    $cmd .= " \"$input_filename\" \"$output_filestem.html\""; 
    418418    $cmd .= " 2>\"$output_filestem.err\"" 
     
    448448    my $cmd = ""; 
    449449    my $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 
    450     $cmd .= "$full_perl_path -S xlstohtml.pl "; 
     450    $cmd .= "\"$full_perl_path\" -S xlstohtml.pl "; 
    451451    $cmd .= " \"$input_filename\" \"$output_filestem.html\""; 
    452452    $cmd .= " 2>\"$output_filestem.err\"" 
     
    987987    if ($timeout) {$cmd = "ulimit -t $timeout;";} 
    988988    my $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 
    989     $cmd .= "$full_perl_path -S pdftohtml.pl -zoom $pdf_zoom"; 
     989    $cmd .= "\"$full_perl_path\" -S pdftohtml.pl -zoom $pdf_zoom"; 
    990990    $cmd .= " -c" if ($pdf_complex); 
    991991    $cmd .= " -i" if ($pdf_ignore_images); 
     
    10621062    $output_type =~ s/.*\_(.*)/$1/i; 
    10631063    my $full_perl_path = &util::filename_cat($ENV{'PERLPATH'},"perl"); 
    1064     $cmd .= "$full_perl_path -S pdfpstoimg.pl -convert_to $output_type \"$input_filename\" \"$output_filestem\""; 
     1064    $cmd .= "\"$full_perl_path\" -S pdfpstoimg.pl -convert_to $output_type \"$input_filename\" \"$output_filestem\""; 
    10651065    if ($ENV{'GSDLOS'} !~ m/^windows$/i || $is_winnt_2000) { 
    10661066    $cmd .= " > \"$output_filestem.out\" 2> \"$output_filestem.err\"";