Screen blanker
Bob Willey
bob at consult.UUCP
Mon Jun 10 08:09:51 AEST 1991
In article <1991Jun6.205517.10479 at mack.uit.no> thostr at stud.cs.uit.no (Thomas Strandenaes) writes:
>Is there a screen blanker available for SCO Xenix 386 (2.2.3) somewhere?
>If so, I'd be happy if anyone cared to either send it to me or otherwise
>tell me how to get it.
Since this has come up several times recently, I have posted it for
general usage. This was gotten from the net, and the original author
is quoted in the following:
The following script will do it (in a simple way). Just add it to your
crontab file to call it every five minutes.
------------------------ cut here --------------------------
:
# screen saver for sco console
#
# Published on the net by Chip Rosenthel
#
# use who -u for logged in screens
# use who -a for all active screens
who -u | awk '{
tty=$2 # basename of tty
idle=$6 # time idle in "hh:mm"
if ( tty !~ /^tty[01][0-9]$/ || idle == "." || tty == "tty01" )
next # skip non-console & non-idle terms
n = split(idle,x,":")
if ( x[1] * 60 + x[2] > 15 ) # print tty if idle > 15 mins
print tty
}' | while read tty ; do echo "\f" > /dev/$tty ; done
--
Jonathan Bayer Intelligent Software Products, Inc.
--
>.. CCS Enterprises, Inc. .. Bob Willey, CDP ..<
>.. P.O. Drawer 1690 .. uunet!consult!bob ..<
>.. Easton, Maryland 21601 .. (301) 820-4670 ..<
>.......................BBS: (301) 476-5098.....................<
More information about the Comp.unix.xenix.sco
mailing list