- #1
Quadruple Bypass
- 120
- 0
hi! I am trying to create a script that will run a program, enter inputs (this program requires some inputs for it to run), and then send the output to a file. I am stuck on trying to get the script to enter in those inputs :( so far all i have is:
./program > file
<input1>
<input2>
<input3>
and unfortunately this doesn't work. I've tried like a thousand combinations that i thought would work but i can't figure it out. I am pretty sure there is something wrong with the way I am sending the outputs to the file, but i think i might be able to figure that out whereas i have no idea how to get the inputs inputted in correctly. I am new to unix as you can tell. any help is appreciated!
./program > file
<input1>
<input2>
<input3>
and unfortunately this doesn't work. I've tried like a thousand combinations that i thought would work but i can't figure it out. I am pretty sure there is something wrong with the way I am sending the outputs to the file, but i think i might be able to figure that out whereas i have no idea how to get the inputs inputted in correctly. I am new to unix as you can tell. any help is appreciated!
Last edited: