home *** CD-ROM | disk | FTP | other *** search
- This is another idle program. I've seen, over a period of time,
- several scripts/programs that were supposed to monitor and log off
- users after a set period of time. Some of these were quite good while
- others were nothing more than quick shell scripts that did a quick and
- sometimes dirty job of eliminating the offending users. But it always
- seemed that they lacked something. What I have endevored to do with
- this program is combine some of the *important* features that *I* found
- appealing into one package.
-
- Some of the features of this program are:
- o Runs from a daemon (well, sortof) not from a cron.
- o Allows for a warning to idle users before logging them out.
- o Allows for logging of both warned and logged off users to
- a file --- maybe for future use.
- o Allows for setting a separate day time and night time idle period.
- o Allows optional mailing to logged off users.
- o Gets idle time for user processes from utmp directly.
- o Immune users.
-
- Some of the features I plan to add:
- - Improve daemon qualities of program
- - Varible time limits for selected users.
- - Custom messages to offending users.
- - Feature to, optionally, "nag" repeat offenders at their login time.
-
- A WARNING:
- I HAVE FOUND THAT THE BOOT TIME SCRIPT DOES NOT WORK! PLEASE DON'T
- USE THIS METHOD.... I AM WORKING ON A MORE RELIABLE WAY TO IMPLEMENT THIS!
-
- If you find bugs, let me know, I'd like to see this program bug free :-)
- If you have a suggestion, and better yet code to support it, let me know.
- This is known to run on an AT&T 3B2/700 SYSV 3.2.1 . I don't have access to
- a BSD or VMS machine, so I'm not attempting to port to those machines, although
- I don't think it would be a major job. I know BSD user will have to play with
- get_max.c which has a memcpy function in it. There is a BSD function for this,
- bcopy I think. BSD users will also have to look at immune.c which has a call
- to "strchr", you will need to substitute an index call. If someone with
- access to the proper machine would like to volunteer the code diffs, I will
- include them in the next release.
-
- James B. Cummings
- e-mail:
- UUCP:
- {...texsun!csccat!dalnet
- ...void!dalnet
- ...swblat!texbell!texnet
- ...swgate!dlss1 }!dlss2!james
- NET:
- jc@smunews
-