Answer the question
In order to leave comments, you need to log in
How to enter a command for the running program in a bash script after starting the program?
How to execute a command in the program after launch? all in one bash script.
#!/bin/bash
./soft_test
#тут нужно выполнить команду для soft_test типа "start"
Answer the question
In order to leave comments, you need to log in
Try it printf 'start\n' | ./soft_test
- without pause
If not, then there is a specialized expect utility .
https://habr.com/company/ruvds/blog/328436/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question