Path: utzoo!attcan!uunet!wuarchive!sdd.hp.com!caen!umich!umeecs!msi.umn.edu!noc.MR.NET!uc!shamash!jdh@punjab.udev.cdc.com From: jdh@punjab.udev.cdc.com Newsgroups: comp.unix.aux Subject: Automatic Screen Blanking for the Login Console Message-ID: <27224@shamash.cdc.com> Date: 18 Oct 90 17:34:20 GMT Sender: news@shamash.cdc.com Reply-To: jdh@punjab.udev.cdc.com () Organization: Control Data Corp., Arden Hills, MN Lines: 33 I have found a kludgy way to get my screen blanker to automatically take effect when the login console is up. We all know that screen blankers can take effect when the "About..." box is selected. It turns out that if any old dialog box comes up, screen blankers can run. So I wrote the following shell script called "timer": STR="/mac/bin/Login -m2m -s /mac/sys/Login" if ps -ef | grep console | grep "$STR" > /dev/null then echo "Login Console Check at "`date` > /dev/console fi And I call it periodically through crontab: 5,15,25,35,45,55 * * * * /home/jdh/timer What happens is: Every ten minutes, timer checks to see if the console login is up. If so, timer writes a time stamp to the console device. This causes a dialog box to appear on the screen telling the user that console messages are availble. If no one clicks the OK button, the blanker will turn on after its normal wait for inactivity. Luckily, A/UX only queues up two of these dialog boxes so you do not have to click several hundred OKs after leaving the system idle for a few hours. I hope this can be of use to someone. Jeff Holmbeck Control Data Corporation jdh@udev.cdc.com (612)482-3255