[SLUG] Bin!

Jamie Adams adamsj at sdf-eu.org
Fri Jul 25 22:13:01 BST 2003


On Fri, 25 Jul 2003, Mark Feather wrote:

> Date: Fri, 25 Jul 2003 18:11:10 +0100
> From: Mark Feather <akwe-xavante at firenet.uk.com>
> Reply-To: scarborough at mailman.lug.org.uk
> To: SLUG <scarborough at mailman.lug.org.uk>
> Subject: [SLUG] Bin!
>
> Hi
>
> Is it possible to move or Perl or install it into a different location?
>

Would a symbolic link do the trick? Unix/Linux treats a symbolic link exactly as
it would the normal executable. Its very similar to a windows shortcut.

For example:

Say perl lives at /usr/bin/perl on your webserver, and on your local system it
is located at /usr/pkg/bin/perl.

You would create symbolic link on your system by typing:

ln -s /usr/bin/perl /usr/pkg/bin/perl

Now your perl scripts can have #!/usr/bin/perl and the system will actually run
/usr/bin/pkg/perl.

Much easier than moving perl (if thats even possible). Does this make sense?

HTH
Jamie
>
> This will save a lot of messing around with files before uploading updates
> etc.
>
> Mark
>
>
>

Jamie

        adamsj at sdf-eu.org
SDF-EU Public Access UNIX System
ICQ: 140365501 | Linux User #314423




More information about the Scarborough mailing list