[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sending command to a detached screen
From: |
Michael Schroeder |
Subject: |
Re: Sending command to a detached screen |
Date: |
Mon, 21 Aug 2006 19:22:19 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Wed, Jun 14, 2006 at 12:58:21PM +0530, address@hidden wrote:
> We are using screen version "Screen version 4.00.02 (FAU) 5-Dec-03" and
> wants to issue a command to a detached screen. If my screen name is kamal,
> and I try the following command, it does not work
>
> screen -S kamal -X 'exec exit'
>
> exit is the command which I want to issue to kamal screen.
If you just want to send the string 'exit' to the window, use:
screen -S kamal -X 'stuff exit'
or (if you also want a newline):
screen -S kamal -X 'stuff exit
'
If you want to kill the window, use:
screen -S kamal -X kill
If you want to kill screen, use:
screen -S kamal -X quit
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}