Ignore:
Timestamp:
2011-06-08T16:24:39+12:00 (13 years ago)
Author:
ak19
Message:

Sam and I fixed all calls to perl specifying a perlpath that was not embedded in quotes so that the perlpath is now nested in quotes (so that we don't have problems launching perl from within another perl script when there are spaces in the filepath).

File:
1 edited

Legend:

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

    r24093 r24125  
    117117    my  $cmd = "cd $importdir; ";
    118118    #$^X is a special variable containing the full path to the current perl executable we are in
    119     $cmd .= "$^X -S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg";
     119    $cmd .= "\"$^X\" -S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg";
    120120    # print "\n$cmd\n";
    121121    `$cmd`;
     
    127127    elsif ((-e "$etcdir/wget.cfg") && (-e "$etcdir/wget.url")) {
    128128    $ENV{WGETRC} = "$etcdir/wget.cfg";
    129     my $cmd = "$^X -S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir";
     129    my $cmd = "\"$^X\" -S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir";
    130130    system($cmd);
    131131    }
Note: See TracChangeset for help on using the changeset viewer.