Exemple shell script to wrap PERL

The FAQchest faqchest at abac.com
Thu Nov 22 10:12:13 CST 2001


~sdpm~
Hello,

Being sysadmin for several system, here is my rule of thumb:

 - Where ever Perl is physycally located on a machine, it is wise to
have a link set at /usr/bin/perl _and_ /usr/local/bin/perl.

 - Setup the default PATH to include /usr/local/bin/ first then /usr/bin 

   Note: depending on the systems, the /sbin partitions may have to be
placed first in the PATH.

type or which will return the first directory listed in the PATH envvar
where it finds it.

Depending on the systems, packages as large a PERL may show up in a
special directory such as /opt. Installers usually copy (not link) the
PERL binary to /usr (bin | local/bin).

On old systems where PERL4 still exists, PERL4 _is_ located in full in
/usr/somewhere and PERL5 is left in its compile directory. Perhaps the
PERl 5 binary is named perl5 while PERL 4 is named perl.

My scripts expect perl tp be by default in /usr/bin/perl. Then, I make
sure a reference to perl exists in this place.

Happy Thanksgiving,
Thierry



Todd Rockhold wrote:
> 
> ~sdpm~
> We really don't have a sysadmin for the box, so I guess that's me.  I
> mounted the installation CD and just selected defaults to get the operating
> system and platform software installed, so I have a "maximally naive"
> installation.  I can understand that a "real sysadmin" might want to have it
> in /opt/perl/bin/perl.
> 
> Also, the default installation gave us perl 5.005_3.  Maybe you have 5.6 or
> later in /opt/perl/bin/perl?
> 
> -----Original Message-----
> From: Wilson, Doug [mailto:Doug_Wilson at intuit.com]
> Sent: Monday, November 19, 2001 9:14 AM
> To: 'Todd Rockhold'; san-diego-pm-list at happyfunball.pm.org
> Subject: RE: Exemple shell script to wrap PERL
> 
> ~sdpm~
> 
> > From: Todd Rockhold [mailto:todd.rockhold at ontogen.com]
> 
> > ~sdpm~
> > For what it's worth, I have a pretty generic SunOS 5.8 installation.
> >
> > "which perl" shows "/usr/bin/perl".
> 
> We're using SunOS also, and a link is installed at
> /usr/local/bin/perl which points to /opt/perl/bin/perl
> 
> -Doug
> ~sdpm~
> 
> 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:
> 
>     unsubscribe san-diego-pm-list
> 
> 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.
> ~sdpm~
> 
> 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:
> 
>     unsubscribe san-diego-pm-list
> 
> 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.
~sdpm~

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:

    unsubscribe san-diego-pm-list

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 mailing list