Anders Norrbring wrote:
I'm puzzled.. I experiment a little with screen, and I'm trying to send a command to an application running in a detached window. I use something like this: screen -S testapp -X eval "stuff quit^M" If I have an ATTACHED screen session 'testapp', the command 'quit' is
BUT, if the same screen is running DETACHED, nothing happens.
The application is started with 'screen -S testapp -d -m
Anders Norrbring wrote: properly sent to it from another shell, and the application quits as expected. theapplication'
How can I get a command sent to the detached session?
You re-attach the session to a new invocation of screen.
After you are done, you can detach it again.
Thanks, I think.. ;-) Would you be so kind to give me some examples on how to do that?
I've never done session detaching in screen. Ask on the list, as I know there are some subscribers who do work detaching sessions in screen. Rankin might be one..but in any event, asking on list is always the best way to get answers.
The entire thing is completely done in scripts with no human interaction, so I can't figure out how to make the script do this "by itself". The only way I've found is to actually interact with it.
That's generally not difficult. It's been almost 20 years since I used screen, but if I remember correctly, Ctrl-P is the magic key-stroke ;-) on the command line $ man screen will tell you everything you need to know Or in konqueror, use man:screen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org