Bash - running an app from a script while retaining stdin (keyboard)

Presumably you can’t just ask for keyboard input BEFORE executing the App?
 
Run it in background and from nohup?
 
Why dont you just shell it into screen?
screen -dm /usr/myapp
That way its still comfortably running in the background and your script continues as per normal.
 
I'm not familiar with screen, but will it still run in the foreground visually? FBI and omxplayer obviously need to be visually up front.
Cheers

Nah it dumps it into its own session that can just resume more easily.

I’m not actually sure of it supports an X window at all, but of it does that might not apply as it does to normal terminal commands.
 
I presume your problem is that Bash treats apps as command line so it only resumes after they exit. I don't know if you can change the program to trick Bash into thinking it's exited. Alternatively is it perhaps possible to write an app or command that will exit after starting your app?
 
Have you tried
Code:
do something &
?

Otherwise if this isn't what you want to do then I don't understand the question.
 
Top
Sign up to the MyBroadband newsletter
X