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 <[EMAIL PROTECTED]> To: [email protected] 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 [email protected] http://lists.gnu.org/mailman/listinfo/screen-users _______________________________________________ screen-users mailing list [email protected] http://lists.gnu.org/mailman/listinfo/screen-users
