>From my (small, tiny) knowledge of UNIX,
here's a roundabout way of achieving a solution
the "w" command usually contains a field
indicating how long a user has been idle
so...ummm...
write a script which
pipes the result of "w" to grep, which
sorts the idle field for users over 15 minutes
and kills those users login shells
(assuming you have the authority to do that) :) hmmm power
run the script in the background every 10 minutes
or so, so it doesn't hog system resources.
If this is a totally stuffed solution, someone
post the correct way.
you didn't expect the code did you... :)
later
Paul
---------
"Jim Meritt" <jmeritt @
smtpinet .
aspensys .
com> Wrote:
|
|
| I'm looking for a way to do this (besides setting and
| exporting TMOUT in the
| /.profile for ksh users) on solaris systems.
|
| Jim Meritt
|
| ______________________________ Reply Separator
| _________________________________
| Subject: Watchdog
| Author: "S.Ramalingam" <srm @
adiblr1 .
soft .
net> at SMTPINET
| Date: 3/18/96 4:34 AM
|
|
|
| Please let me know,
|
| How to automatically logout the user(s) from systems (
| from the shell ), if
| he or she does not use the system for specified period,
| say 15 minutes.
|
|
| Regards
| S.Ramalingam
|
|
|
|