[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making screen look for a pattern to detect "activity"
From: |
Joe Zbiciak |
Subject: |
Re: Making screen look for a pattern to detect "activity" |
Date: |
Fri, 19 May 2006 12:31:03 -0700 (PDT) |
One way might be to pipe the program's output through 'grep.' If you want to
see the full output also, you could do something hackish like:
mknod foo p
program | tee foo
screen grep pattern foo
Then set screen's activity monitor on the newly opened screen containing the
grep output.
--Joe
--We sell Spatulas, and that's all!
http://spatula-city.org/~im14u2c/
http://sdk-1600.spatula-city.org/
http://intyos.spatula-city.org/
----- Original Message ----
From: Hari Bhaskaran <address@hidden>
To: address@hidden
Sent: Friday, May 19, 2006 1:13:52 PM
Subject: Making screen look for a pattern to detect "activity"
Hi,
I want to make screen look for a certain configurable pattern in the
output to detect "activity" (for the montoring feature
Cntrl-a M thingy). I am running a custom program which would print a
certain pattern that I want to watch for, not
necessarily a strict "silence" or "activity"- which currently means any
output.
Is there a way to achieve this in screen? Any help is appreciated
--
Hari
_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users