[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
screen -Q windows
From: |
John Lane |
Subject: |
screen -Q windows |
Date: |
Mon, 13 Jul 2015 01:00:10 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 |
I am trying to get a list of windows from screen in a bash script.
if I do "screen -Q windows" with one session then I get no output and an
exit status of 1.
If I do "screen -Q windows" with more than one session then I get the
below and an exit status of 1
There are several suitable screens on:
There are several suitable screens on: 7872.pts-21.myhost (Attached)
6685.foobar (Attached)
5391.pts-19.myhost (Attached)
Use -S to specify a session.
If I do "screen -S 6685.foobar -Q windows" then I get no output and an
exit status of 0.
The session "6685.foobar" contains two windows that have been given
titles (C-a ") of win1 and win2.
Should the above work, or am I doing something wrong?
I have Screen version 4.02.01 (GNU) 28-Apr-14 running on Arch Linux
3.16.4-1-ARCH x86_64 GNU/Linux
Thanks,
John
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- screen -Q windows,
John Lane <=