I have an executable file (Something.exe) that takes in two inputs when I run it. For example it does something like this:
My-MacBook:Folder my$ ./Something.exe
Enter first input: someimage.tif
Enter second input: x y z coordinates
123 456 23.00000 24.0000 59.345
I run the program and enter the two inputs separately when prompted and then the program gives results.
However, how can I enter the whole process into a single line, meaning:
My-MacBook:Folder my$ ./Something.exe someimage.tif x y z coordinates
123 456 23.00000 24.0000 59.345
How do I do this in a single line on the terminal so I don't have to type in the inputs when prompted? Is there something that I need to tweak in the programs code? The program is written in Fortran 90.