I have an interactive application that takes input from the keyboard.
Whenever I run the application I always write the same things in the beginning. So I was thinking I could make a file with those things and redirect them to the application with:
myapplication < myinput.txt
The problem is that when I am done with that I want to give control back to the keyboard so I can type the rest of the input. Is it possible? I don't mind using a bash script.
/dev/tty
for reading. Then you can start consuming lines from the keyboard.