Location of perl in #! of Mailscanner scripts

grant beattie grant at grunta.com
Thu Apr 6 01:44:40 IST 2006


On Wed, Apr 05, 2006 at 01:48:39PM -0400, Bob Jones wrote:

> Hey all,
> 
>     So, a little issue here with the install.sh script of the 
> distribution for Solaris/BSD/Other Linux/Other Unix.  We have installed 
> a new distribution of perl in a nonstandard location (let's say 
> /opt/perl for this discussion).  So, when I go to install Mailscanner 
> with the install.sh script I give it the flag --perl=/opt/perl and 
> everything installs fine.
> 
>     Next I go to run Mailscanner and it goes kablooey.  I get to 
> looking around and I see why.  Even though I specified an alternate 
> location of perl in the install script, all the Mailscanner perl scripts 
> (e.g. /opt/Mailscanner/bin/MailScanner ) point to #!/usr/bin/perl. 
> Shouldn't the install script change these headings to the specified perl 
> or am I missing something?  I can't just put a link in /usr/bin as the 
> legacy perl is needed for other things.

the generally accepted ``#!/usr/bin/env perl'' would be better here
so it would Just Work even if you don't do --perl=blah...

grant.



More information about the MailScanner mailing list