[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen-scan

From: Artur Skonecki
Subject: Re: screen-scan
Date: Wed, 15 Sep 2010 03:15:00 +0200 (CEST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

lastmsg is queryable:
screen -Q @lastmsg

Artur Skonecki

On Tue, 14 Sep 2010, Aaron Davies wrote:

On Tuesday, September 14, 2010, Aaron Davies <address@hidden> wrote:

a little script to do something vaguely like a KVM's scan function

invoke from some other terminal against a screen with many windows to
be monitored

while true; do screen -S $1 -X next; sleep 1; done

relatedly, is it possible to get the results of lastmsg off the screen
and onto stdout? a use case would be sg like

$ screen -S compiles -X at '#' copy
$ screen -S compiles -X at '#' stuff '?error^M'
$ screen -S compiles -X at '#' dumplastmsg|grep -v 'Pattern not found'|wc -l

i.e. checking that some string doesn't occur on any window

Aaron Davies

screen-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]