[ale] How to pass vars to lots of shell scripts?
leam hall
leamhall at gmail.com
Fri Oct 18 12:01:17 EDT 2013
Hey all,
I have a master script that calls a couple hundred other scripts. Each of
the "other" scripts can also be called in their own.
What I'm thinking about is having a variable like "test" or "fix" be set,
so that if the "other" scripts run they will get a parameter without me
having to put a getopts stanza in each script.
So maybe:
. ./my_vars
if [ $TEST ]
then
...
or
if [ -f ./TEST ]
then
...
Thoughts on the best way to do this? I'm not saying my ideas are the only
way, just what comes to mind.
Leam
--
Mind on a Mission <http://leamhall.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20131018/74f7c218/attachment.html>
More information about the Ale
mailing list