I am trying to create a screen session/window from the shell and launch a command in it. How would I do that?
I am trying to create a screen session/window from the shell and launch a command in it. How would I do that?
first create new session :
screen -dmS [session_name]
then attach command or script to run in session created :
screen -x [session_name] [script.sh]