I have a python script which sometimes prompts the user for input in the form of
raw_input('please provide foo')
.
I have a bash script which among other things executes that python script:
NUM_OUTPUT=$(python -i create_lookup_txtfiles.py data-dir=/data/ad6813/pipe-data/Bluebox/raw_data/dump to-dir=/data/ad6813/caffe/data_info/$TASK_NAME bad-min=$BAD_MIN)
I would like to run this bash script and provide input (as a user, via interactive shell) to the python script's prompts when need be.
But when I run the bash script, I do not see the python prompts.
I have also tried without the -i
flag, to no avail.
Is there a way to solve this?