I have some Python 2.7 code which takes input from the user and stores it as variables.
I would like to execute a test.sh Bash script but using the Python variables which I have created.
For example, what I want to accomplish: ./test.sh -a "VARIABLE1" -b "VARIABLE2" -c "VARIABLE3"
The -a, -b, & -c are Bash options and the variables are the code that goes with them.
This is the code I have so far:
Name = input("What is your name?")
Age = input("What is your age?")
City = input("What is your city?")
subprocess.call(['sh', './test.sh'])