1 2 3 4 5 6 7 | #!/bin/tcsh -f
setenv BNR_PATH /some/special/path/
setenv BNR_BIN /another/special/path/bin
setenv BNR_ROOT /special/root/path
/path/to/your/script.py $argv:q
|
Tuesday, December 15, 2020
How To Create A Wrapper Script With Customized Environment
When working in a team, everyone will have to conform and work in a same environment.
But there are times that, a certain script of yours needs a different environment in order to run.
An example would be, everyone in the team has their python version set to 2.7.13.
But for some reason, you have a python script that will only work with python 3.
Having a wrapper script that customize the environment before running your script would solve this issue.
Here's how the wrapper script will look like
Subscribe to:
Post Comments (Atom)
How To Bypass Kerberos(kinit) Authentication
Whenever you try to setuid and impersonate as someone else to run something, it is very likely that you will run into kerberos/kinit issues....
-
8am woke up. 10am walked to nearest 7-11 that we visited last nite. Hitting our luck and ask the joy if he sees a dropped pasmo card here...
-
Today is a rainy day. It has already rained the whole night last night. 7am woke up 8am left house. 9am reach Roponggi. It was raining, not...
-
8am woke up 10am leave house. Went to shunjyuku Calico cat cafe. Asked then and see whether they got any lost and found item. Sooooooo happy...
No comments:
Post a Comment