[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] How to pass vars to lots of shell scripts?
- Subject: [ale] How to pass vars to lots of shell scripts?
- From: leamhall at gmail.com (leam hall)
- Date: Fri, 18 Oct 2013 12:01:17 -0400
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>