I have an application built in C that uses fgets to read user commands from stdin. I want my embedded linux system to launch this application on startup, and put the user in the terminal of this application.
I can launch the application on startup using a bash script:
./my_app
but the application does not seem to be getting stdin from the user terminal.
If I wait to log in to linux, and then launch the application manually from the terminal, I can interact with it just fine.
Is there any way to launch the program automatically (such as with a startup script) but then pass over control to the user, as if the user had launched the program themself?