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
_______________________________________________ screen-users mailing list screen-users@gnu.org https://lists.gnu.org/mailman/listinfo/screen-users