[Top][All Lists]

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

Re: Identifier matching in the at command

From: Artur Skonecki
Subject: Re: Identifier matching in the at command
Date: Sun, 5 Feb 2012 22:44:19 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

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
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.

reply via email to

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