Currently trying to pass a parameter from my python script to a bash script I created. How can I can get user input from my python script to my bash script?
This is the code for my python script 'passingParameters.py' which I used to try and send a variable (loop) to my bash script. I have tested this python script (after I adjusted the code) by sending the output to another python script which I used to read the input.
loop = str(sys.argv[1])
subprocess.check_call( ["./test.sh", loop], shell=True)
This is the code for my bash script 'test.sh'. I have tested this script by itself to confirm that it does receive user input when I just call the bash script from the command line.
echo "This number was sent from the passParameters.py script: " $1