I am trying to write a python script which will execute a bash command line program for me. This program asks for user input twice, and I want my script to automatically enter "1" each time.
I've heard of something like this:
os.system("program < prepared_input")
How do I write prepared_input? Thanks.