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

Sam and I fixed decided all calls to perl -S from within perl needed to use the special dollar-caret-X variable to refer to the particular perl installation that was also used to run the caller script. This way we have a consistent perl and we know which perlpath works. This variable is moreover embedded in quotes to deal with any spaces in the path to the perl installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/cgiactions/baseaction.pm

    r23767 r24126  
    433433    my $gsdl_cgi = $self->{'gsdl_cgi'};
    434434
    435     my $sendmail_command = "perl -S sendmail.pl";
     435    my $sendmail_command = "\"$^X\" -S sendmail.pl";
    436436    $sendmail_command .= " -to \"" . $mail_to_address . "\"";
    437437    $sendmail_command .= " -from \"" . $mail_from_address . "\"";
     
    462462    $perl_args = "-collectdir \"$collect_dir\" " . $perl_args;
    463463
    464     my $perl_command = "perl -S $script $perl_args";
     464    my $perl_command = "\"$^X\" -S $script $perl_args";
    465465
    466466
Note: See TracChangeset for help on using the changeset viewer.