"Stuffing" commands into a detached screen-session
From: Thomas Stian Bergheim (knighthk_at_glvortex.net)
Date: 09/27/04
- Next message: Menno Duursma: "Re: Small linux distro?"
- Previous message: Paul Ingram: "Re: Adding Users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Sep 2004 11:47:58 +0200
Hello,
I want to perform commands on a detached screen without attaching it. It
almost works, problem is, I have to attach/detach it first..
This doesn't work, "test" is never "stuffed" to test-screen:
Code:
screen -dmS test-screen; screen -S test-screen -X stuff test; screen -r
test-screen
However, this works fine:
Code:
screen -dmS test-screen; screen -r test-screen;
screen -d;
screen -S test-screen -X stuff test; screen -r test-screen
The difference is that I attached/detached it, but the screen has to start
in a detached mode and stay that way..
Any ideas how to make this work without attaching the screen first?
Thanks.
-- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
- Next message: Menno Duursma: "Re: Small linux distro?"
- Previous message: Paul Ingram: "Re: Adding Users"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|