[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to test if screen has a specified window?
From: |
Sadrul Habib Chowdhury |
Subject: |
Re: How to test if screen has a specified window? |
Date: |
Tue, 16 Feb 2010 16:44:15 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* 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
Sadrul