screen-users
[Top][All Lists]
Advanced

[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
http://adb.cba.pl

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

#!/bin/sh
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

--
Aaron Davies
address@hidden

_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users




reply via email to

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