Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: using "#!/<perlpath>/bin/perl" to exec a shell script?

by cadphile (Beadle)
on Oct 04, 2007 at 03:23 UTC ( [id://642552]=note: print w/replies, xml ) Need Help??


in reply to Re: using "#!/<perlpath>/bin/perl" to exec a shell script?
in thread using "#!/<perlpath>/bin/perl" to exec a shell script?

Hi Roboticus, unfortunately, the perl installation is on a common automounted partition, that is shared across all platforms. We run almost entirely on servers, and don't have individual machines. Also, if I have a script that has
   #!/common/bin/perl
and this resolves to:
  /common/bin/perl -> <perlpath>/bin/perl
so that the common executable path is a link to the wrapper, you still have the same problem: i.e. the unix kernel can't exec the file <perlpath>/bin/perl, because it's not binary, and doesn't return the "magic number". So, the perl script just gets parsed by /bin/csh, which croaks...

I'm really thinking there is no good solution to getting <perlpath>/bin/perl to trick the kernel into thinking that it's a real binary shell interpreter...

  • Comment on Re^2: using "#!/<perlpath>/bin/perl" to exec a shell script?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found