Aucbvax.1604 fa.unix-wizards utzoo!duke!mhtsa!ucbvax!mclure@Sri-Unix Wed Jun 10 18:40:20 1981 reaper daemon Date: 9 Jun 1981 09:03:43-PDT From: mo at LBL-UNIX (Mike O'Dell) To: mclure at sri-unix Subject: blastoff Via: Lbl-Unix.ArpaNet; 9 Jun 81 9:10-PDT Yes, I have a program, called "blastoff", which does what you want by taking advantage of the fact that all our general use terminals come in through two dataswitches (a Develcon and a Gandalf). When the blastoff time arrives, it does an "stty 0 hup >/dev/tty??", which the dataswitch interprets as a computer-originated disconnect. The dataswitch then drops CD, which causes a Unix Hangup. This is good because things like "vi" and some other things will save some state to allow recovery from the blastoff. The program is run every 5 minutes by "cron", and because it simply checks to see if you are over "threshold" idle time, the period can be [t,t+5] minutes. If you want a copy of it, you are welcome to it. -Mike ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.