Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!consult!bob From: bob@consult.UUCP (Bob Willey) Newsgroups: comp.unix.xenix.sco Subject: Re: Screen blanker Message-ID: <573@consult.UUCP> Date: 9 Jun 91 22:09:51 GMT References: <1991Jun6.205517.10479@mack.uit.no> Reply-To: bob@consult.UUCP (Bob Willey) Organization: CCS Enterprises, Inc. - Easton, MD Lines: 35 In article <1991Jun6.205517.10479@mack.uit.no> thostr@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.....................<