*BSD News Article 27856


Return to BSD News archive

Xref: sserve comp.unix.programmer:15334 comp.unix.solaris:12860 comp.unix.bsd:13503
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!emory!news.cc.emory.edu!labsha
From: labsha@cc.emory.edu (Cute Winsome Lad)
Newsgroups: comp.unix.programmer,comp.unix.solaris,comp.unix.bsd
Subject: running program at specific idle time
Date: 24 Feb 1994 07:39:39 -0500
Organization: Emory University
Lines: 26
Sender: news@emoryu1.cc.emory.edu
Distribution: inet
Message-ID: <2ki76b$9uo@emoryu1.cc.emory.edu>
NNTP-Posting-Host: emoryu1.cc.emory.edu
X-Newsreader: TIN [version 1.2 PL1]
X-Newsreader: TIN [version 1.2 PL1]

Folks--
 I'm working under Solaris 2.3 w/ the BSD compatibility package on
a Sun 4/690 mainframe. What I want to do is invoke a tty locking
program similar to BSD's "lock" if my telnet connection has an idle
of 15 minutes. (15 is an arbitrary number, it could be something
else.)

So, I figure 1) I either need to find something in the system that
will run a program when the tty idle hits 15 minutes, or 2) I need
some way of figuring out the idle inside a program I write and run
as a cron job.

Can anyone out there help me in either of those two ways, or in any
way I can't foresee?

I'd appreciate it.

thanx,
shy

--
 /----------------------------------+-----------------------------------------\
 | Shyela Aberman, 404-712-2229     | INTERNET: labsha@emory.edu              |
 | P.O. Box 21017, Emory University | BITNET: labsha@emoryu1                  |
 | Atlanta, Georgia 30322           | UUCP: {rutgers,gatech}!emoryu1!labsha   |
 \----------------------------------+-----------------------------------------/