home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / vmsnet / internal / 1577 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.5 KB

  1. Path: sparky!uunet!spool.mu.edu!umn.edu!msus1.msus.edu!stafford.winona.msus.edu!user
  2. Newsgroups: vmsnet.internals
  3. Subject: Re: re:... idle terminals
  4. Message-ID: <Stafford-101192114012@stafford.winona.msus.edu>
  5. From: Stafford@Vax2.Winona.MSUS.EDU (John Stafford)
  6. Date: 10 Nov 92 11:50:27 -0600
  7. Followup-To: vmsnet.internals
  8. References: <9055342@MVB.SAIC.COM>
  9. Distribution: world
  10. Organization: MSUS
  11. Nntp-Posting-Host: stafford.winona.msus.edu
  12. Lines: 26
  13.  
  14. In article <9055342@MVB.SAIC.COM>, "Bob George" <BOB@aeneas.ims.disa.mil>
  15. wrote:
  16. > Here's a stupid comment about just being killed by an idle terminal
  17. > monitor.  Aren't there a few flavors of them that are on the internet
  18. > along with a commercial one or two that allows you to configure them
  19. > to ignore certain usernames/terminals/...  Get one of them???
  20.  
  21. If FORCEX is not an issue, I cannot see why this is such a complex
  22. problem.  We have an elementary DCL procedure servering as a good
  23. idle process killer.  It can make execeptions based upon username,
  24. group, terminal, job and kill from the top down, protect system jobs, have
  25. on-off hour times for certain kills, most of the good stuff.
  26.  
  27. Elementary
  28.  
  29.     create Indexed file
  30.     Loop:
  31.     wait n unless first iteration (the max idle time)
  32.     Get PID and process info
  33.     Process exemptions
  34.     Append padded USERNAME to F$TIME()
  35.     Check Indexed file - does this key exist?
  36.         if it does then the job has been idle for n minutes.
  37.                 KILL it.
  38.         if it does not exist, then Put this as a KEY to Indexed file
  39.     repeat Loop
  40.