Let's say I have the following two commands:
A=1 B=2 C=3 run-app1.py
A=1 B=2 C=3 run-app2.py
I'd love to dry this out so I only need to update the variables in one place (and not risk them getting out of sync). Something like:
VALUES = get-values.sh
VALUES run-app1.py
VALUES run-app2.py
How can I do this?
run_with_valueswhich will invoke the passed as argument program with the values you want as in./run_with_values run-app1.py