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

Re^2: Modifying %ENV From The Shebang Line

by williams (Beadle)
on Dec 17, 2007 at 22:41 UTC ( #657542=note: print w/ replies, xml ) Need Help??


in reply to Re: Modifying %ENV From The Shebang Line
in thread Modifying %ENV From The Shebang Line

That was also one of the solutions I posted. It does indeed work, but it seems crufty. For every Perl hook script I write, I've got to write a shell layer to kick it off. The layers could probably be symbolic links to a common script. If that's the best I can do, I can live with it. I just thought there was a better way, given the sneaky shebangs in perlrun.

Thanks,

Jim


Comment on Re^2: Modifying %ENV From The Shebang Line
Download Code
Re^3: Modifying %ENV From The Shebang Line
by halley (Prior) on Dec 18, 2007 at 14:11 UTC
    One environment-fixing wrapper, as shown, but taking an argument that specifies which perl hook script to be run.
    #!/bin/bash export LD_LIBRARY_PATH=... export HOOKS_PATH=/path/to/svn/hooks [ -f $HOOKS_PATH/$1 ] && perl $HOOKS_PATH/$1

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-09-19 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls