Re: SV: [opensuse] screen annoyance
![](https://seccdn.libravatar.org/avatar/78a54303d11d07e309d209d196f72c9e.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/231ff7ea796e0bb40fa66ba917d89113.jpg?s=120&d=mm&r=g)
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.
Well, I did ask in the list, but it seems like everyone is busy bitching at Novell about the upcoming 11.. Hehe..
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 ;-)
Ctrl-a, but that's just not what I want, since I want a script to make the input to the detached screen.. ;-) Oh well, I'll do some more googling while I wait for some guru to reply.. Thanks, and have a great week! Anders. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/78a54303d11d07e309d209d196f72c9e.jpg?s=120&d=mm&r=g)
Anders Norrbring wrote:
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.
Well, I did ask in the list, but it seems like everyone is busy bitching at Novell about the upcoming 11.. Hehe..
There was a big fiasco with one of the early 10.x releases, and we don't want to see it repeated again...especially when the "light at the end of the tunnel" is making suspicious a familiar choo-choo-choo-choo sound and occasional loud whistle.
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 ;-)
Ctrl-a, but that's just not what I want, since I want a script to make the input to the detached screen.. ;-)
I don't think you can do do interactive stuff with stdin on a detached screen... you'll have to re-attach it to a running instance of screen.
Oh well, I'll do some more googling while I wait for some guru to reply..
Thanks, and have a great week! Anders.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anders Norrbring
-
Sam Clemens