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)
Display Not Found / No protocol specified
When faced with these errors, it most probably means your X11 forwarding authorization is not set up (or messed up). You will need to manual...
-
Perforce has a global option -ztag If you run a normal perforce command like this 1 2 3 4 p4 files -m3 ... //depot/da/infra/dmx/ma...
-
/* This binary is intended to be a setuid script wrapper for dbRsync.pl. Usage:- >gcc setuid_swap.c -o newfilename >chmod 47...
-
Hiro has been having mouth pain for the past few days. And it's being getting worse lately. We brought him to vet, and the doctor said ...
No comments:
Post a Comment