Hello all
I have to run a program repeatedly that demands a few responses from the users when run: a few yes/no questions and a filename. To save time I was going to use a script. I already use this one to run the program once ("program" is the command to launch the program I use):
Code:
program << echo
file.log
y
n
e
But I'm not sure how to get it to work again for another file. This doesn't work, it only opens the program once:
Code:
program << echo
file1.log
y
n
e
program << echo
file2.log
y
n
e
Thanks!