Screen supports externally controlling a detached screen with the -X parameter, for example:
screen # -X -p0 "quit"
That will terminate the screen where # is the screen PID. However what I want to do is pass a command "inside" the screen. So for example if the program inside is nano and I want to write "hello world" into that nano process how would I do it via screen?
screen # -X -p0 "hello world"
That treats it as if I want the screen to run "hello world" (which isn't a command) but I want to pass it to the program running inside screen.
I can't find any information in the manual. I'm running centos.