Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Can I write a transparent shell wrapper to start the correct build of Perl?

by almut (Canon)
on Feb 06, 2008 at 13:22 UTC ( [id://666544]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Can I write a transparent shell wrapper to start the correct build of Perl?
in thread Can I write a transparent shell wrapper to start the correct build of Perl?

Why not, what's the problem? I've been using them like this for ages without any issues I could remember.  Resolution of symlinks is a rather low-level kernel feature, which should be handled transparently by any modern version of Unix.

PS: anyone interested in how it's done in Linux may want to study the function load_script in linux/fs/binfmt_script.c, which calls open_exec (linux/fs/exec.c), which in turn eventually branches (via path_lookup_open) into the generic path lookup and symlink resolution code implemented in linux/fs/namei.c.

Replies are listed 'Best First'.
Re^4: Can I write a transparent shell wrapper to start the correct build of Perl?
by Anonymous Monk on Feb 06, 2008 at 17:12 UTC
    I tried this a few weeks ago on my Debian box and it didn’t work — refused to run perl and gave an error message instead. But I’ve just tried it again and it works now. I am at a loss to explain why.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://666544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found