screen -Q windows
John Lane <john-ZqRJZfTn75/[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVov+QAAoJEGnTYCRabxPGAxcQAIJiHlhML391JrWLyJiKY/k7 FW+dO1T1S7TCpW82F3FyCVmFA9O2KAuVpGOA6s/uaqTK09T5K1lRfAUBmFYFEa8s PjbtKDLd6m/wLMuwDKTsUcXK1+naK54l7ZPn3afCva7vby0Qrc4LOSxfL6CyTqL6 VbQFQek4AH9gvxOtY49DVmfw/a3Z35GjblRHFNtzOmLnpMBFxlC5TVhG0hDDRy18 PpY0cBslk0nZiO+kbV/K9L+fUFi4M6Z0szrBczq0usvO81IEFPc6LC86ShCCeUeX VNtAnAjlTXGDFCtgzz0gtU9mbsk2Y5GqT5g7XDjYjobPS4oJmNudjeu839HN/low 8MKg9R1NsQt0MZvu9shtuFnhz5gMYzBLTXUDukTecEGueWSt+CyARv+FaeZ895iU A3Q5JCHeLXm//38DPfq+cI+MClpuaFFii0xWhEnyYJfX5R6w5pQnyCk6IyMGW9ik JSLDEqedAvhjyTd2RAeRdcmVH7N8JWrWAlSrkuYhvm2k8q4h9Ed+glR7A8FU35jE Tz/GdhnUDZIoRJlF1R1gD7tpzTK4K4WUTTmrgGljxiT46pe/1EV+3kvBTinljlxK f1obcJH4ZVA0657Rwiwq2Ks8bzd9MywdrYPeZId5wxSHVyVCL4ZOVR7yuYGV6NGm LgdshxHGKehb+txVx8ZP =iEoP -----END PGP SIGNATURE-----