screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can not send command to screen with -X flag


From: Phil!Gregory
Subject: Re: Can not send command to screen with -X flag
Date: Wed, 31 Mar 2004 13:53:43 -0500
User-agent: Mutt/1.5.5.1+cvs20040105i

* Mario Ohnewald <address@hidden> [2004-03-31 17:20 +0200]:
>   screen -S name -X stuff "command^M"
> 
> How will i have to start screen in order to send commands to it?

The solution is in how you send the commands.  You need to use the -p
option:

  $ screen -S name -p 0 -X stuff "command^M"

The problem is that without a qualifier -X sends its commands to the
current window.  If you've created a session detached, there is no
"current window" until you connect, so you need to specify a destination.

Playing with things shows that running 'screen -X select 0' beforehand
doesn't work; until you attach and detach, it looks like you'll need to
explicitly specify the destination window.

-- 
...computer contrarian of the first order... / http://aperiodic.net/phil/
PGP: 026A27F2  print: D200 5BDB FC4B B24A 9248  9F7A 4322 2D22 026A 27F2
--- --
To a database person, every nail looks like a thumb.  Or something like
that.
                       -- Jamie Zawinski
---- --- --




reply via email to

[Prev in Thread] Current Thread [Next in Thread]