Changeset 24192 for main/trunk/greenstone2/bin/script/mirror.pl
- Timestamp:
- 2011-06-22T17:39:13+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/mirror.pl
r24125 r24192 48 48 } 49 49 50 use Config; # for getting the perlpath in the recommended way 50 51 use arcinfo; 51 52 use colcfg; … … 116 117 # run the mirror program from the import directory 117 118 my $cmd = "cd $importdir; "; 118 # $^Xis a special variable containing the full path to the current perl executable we are in119 $cmd .= "\"$ ^X\" -S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg";119 #Config{perlpath}, like $^X, is a special variable containing the full path to the current perl executable we are in 120 $cmd .= "\"$Config{perlpath}\" -S gsw3mir.pl -cfgfile $etcdir/w3mir.cfg"; 120 121 # print "\n$cmd\n"; 121 122 `$cmd`; … … 127 128 elsif ((-e "$etcdir/wget.cfg") && (-e "$etcdir/wget.url")) { 128 129 $ENV{WGETRC} = "$etcdir/wget.cfg"; 129 my $cmd = "\"$ ^X\" -S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir";130 my $cmd = "\"$Config{perlpath}\" -S gsWget.pl --input-file=$etcdir/wget.url --directory-prefix=$importdir"; 130 131 system($cmd); 131 132 }
Note:
See TracChangeset
for help on using the changeset viewer.