I am going to be running a C program from inside a bash script.
The c program expects inputs from the user. total number of inputs are 7. which are on 7 different lines. for example
Please enter input1:
1
Please enter input2:
2
Please enter input3:
3
so on.. I did some reading up and found out that bash here strings are used for this purpose. So I ran the program, from inside a bash script with the following command
./runnable <<< 1
this solves the purpose when the input is required only once...what is the solution when multiple inputs will be required?