Re: Identifier matching in the at command

Artur Skonecki <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <alpine.DEB.2.00.1202052222380.19217@cvops>
The development version of GNU Screen has -Q flag which may be used
to query results of some commands.  Also there is -X flag for sending
arbitrary commands to a session, e.g. "screen -p 1 -Q title" will yield
the title of window 1.  Unfortunately, sending commands to every window
separately is much slower than using "at" command.

<shameless auto-promotion>
If you are willing to compile Screen on your own you might as well
install screen-session https://github.com/skoneka/screen-session/downloads
and grep "screen-session dump" output for window titles.
</shameless auto-promotion>

On Sun, 5 Feb 2012, Adrian Fita wrote:

> I want to send commands to a selection of open windows in screen. The
> command to do that is the "at" command, but it doesn't allow a
> sufficiently flexible syntax for selecting the windows to which to
> send the commands. I can't match something like a list, let's say I
> want to send the command to the windows numbered 1,3,4,6,10, or match
> a range of numbers, ex: 3-9 or select the windows based on the titles
> like "*string" (supposing you have some windows titled with "string"
> at the end). The most flexible way to match the windows for now is
> naming the windows with the same string in the front. Also, the
> documentation is lacking in clearly describing what is the syntax of
> the "identifier" parameter is.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.