home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1696 / README < prev   
Encoding:
Text File  |  1990-12-28  |  2.3 KB  |  50 lines

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