Is there any Linux command which supplies multiple enter keys to another process which is running in a terminal till the other process dies?
For example consider the command
yes ' ' | ./ssr-sim prepare. I need a command on the LHS side of the pipe(
|). For example instead of
yes ' ' on the left of
|, another command which supplies multiple enter keys to the
./ssr-sim prepare on the right side.
I wanted to automate enter keys inside a shell script and the command
./ssr-sim prepare produces output which asks for password multiple number of times and the user needs to manually press the Enter key every time (no need to give password here, only press Enter each time when it asks for password). I need to automate that pressing of enter key part.
yes ' ' | ./ssr-sim prepare is not working.