Exemple shell script to wrap PERL
Doug_Wilson at intuit.com
Thu Nov 15 10:59:04 CST 2001
> From: The FAQchest [mailto:faqchest at abac.com]
> During last night's meeting, Joel asked for a way to universally
> determine the absolute path to PERL in order to create a generic PERL
> script that would run as CGI on a large variety of systems, of course
> with various PERL installations.
> Here is a sample script. Let us know if it works well on your
I'd change one thing, this line:
perl_loc=`which perl | grep perl | sed -e 's,/perl,,'`
wouldn't work for perls installed in /opt/perl5/bin, or
for me either because I have perl installed in a really
strange place that has '/perl' in the middle of the
path, so I'd change that to:
perl_loc=`which perl | grep perl | sed -e 's,/perl$,,'`
And on one system I've seen, 'which' was spelled 'whence' (don't
ask me which one, I don't remember (and its rather uncommon
> PS: The new location for the meeting is awesome. Thanks!
I agree :-)
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm