I want to write a bash Script to launch a process with arguments.
As the following example: in the terminal i would launch the process and it will ask to chose a number. In terminal it would be :
user@u11:~$ process -someflag -someflag
Hello ! Choose an option
1.blabla
2.do that
3.do the other
>>
Now, i want to launch the process with already the option selected in it but i couldn't succeed.
I can write this script :
#!/bin/bash
#script.sh
process -someflag -someflag
If i run this script it will send me to the menu and make me choose a number. I want to provide this number inside the script. Is there any possibility ?