On Wed, Jun 14, 2006 at 12:58:21PM +0530, [EMAIL PROTECTED] 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           [EMAIL PROTECTED]
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to