* Yue Wu had this to say on [11 Feb 2010, 09:45:12 +0800]:
Hi list,
I want do some script with screen, but I don't know how to know if
screen has
a window titled with "foo", if has, then do some thing, otherwise, do
other
thing, is it possible in a sh script?
In the latest git version, you can do something like the following:
screen -p foo -Q echo ""
If the window 'foo' does not exist, then it will terminate with a
non-zero status. More at:
http://lists.gnu.org/archive/html/screen-users/2010-02/msg00031.html