v11i020: Idle demon

James Cummings james at dlss2.UUCP
Fri Aug 24 05:50:10 AEST 1990


In article <1990Aug23.051212.24281 at zorch.SF-Bay.ORG> xanthian at zorch.SF-Bay.ORG (Kent Paul Dolan) writes:
>I gave up looking about 35% of the way through the code; do you anywhere
>protect against killing a user during downloads, when the terminal would
>normally be idle for long (up to several hours with a slow modem and big
>files) periods of time?

	You're absolutely right!...although I have not tested it in this 
particular manner, I would think that during a download you WILL accumulate
IDLE time that the program will notice.  Because of the nature of "cheating"
users who use a looping shell program to "fake" a screen activity, I choose
to use stat and the utmp log.  This would mean that "real" keyboard activity
would need to occur to keep idle time from building up.
	Of course, if it's your machine and you have the control, simply
add yourself to the immune file.  This makes a point though and if I can
find a reasonable way to incorporate a "safety switch for downloading", I'll
add that as a patch or new version (you get the fame and glory for the 
idea).  Generally most system administrators want to keep someone from
jumping off the system or just getting up from the keyboard and walking
off, leaving an active shell behind.

		Thanks again for the suggestion.
-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|Disclaimer:                      | James Cummings                           |
|  You can't blame me!            |   UUCP:                                  |
|  I'm ignorant!                  |    ..swblat!{texbell!texnet..            |
|+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+|              swgate!dlss1..}!dlss2!james |
|Send flames to:                  |   NET:                                   |
|  sowc at devnull.com               |      jc at smunews                          |
|                                 |                                          |
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+



More information about the Alt.sources.d mailing list