EtherBunny
March 30th, 2009, 05:02 PM
So, I have this program that prompts the user to enter some data like this:
$ program
Enter your name: <user enters name here>
...
I'd like to make a bash script that runs this program for a bunch of different inputs. The problem is that the program doesn't take command line options.
Is there any way to interact with this program? Would sending data to standard input work?
$ program
Enter your name: <user enters name here>
...
I'd like to make a bash script that runs this program for a bunch of different inputs. The problem is that the program doesn't take command line options.
Is there any way to interact with this program? Would sending data to standard input work?