home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / large / 266 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.2 KB  |  47 lines

  1. Newsgroups: comp.unix.large
  2. Path: sparky!uunet!cs.utexas.edu!convex!constellation!munnari.oz.au!uniwa!DIALix!metapro!bernie
  3. From: bernie@metapro.DIALix.oz.au (Bernd Felsche)
  4. Subject: Re: Can project based accounting be done on Unix?
  5. Message-ID: <1992Jul30.015308.2538@metapro.DIALix.oz.au>
  6. Organization: MetaPro Systems, Perth, Western Australia
  7. References: <5453@mccuts.uts.mcc.ac.uk>
  8. Date: Thu, 30 Jul 92 01:53:08 GMT
  9. Lines: 36
  10.  
  11. In <5453@mccuts.uts.mcc.ac.uk> zzassgl@uts.mcc.ac.uk (Geoff Lane) writes:
  12.  
  13. >Against my better wishes I have to implement a `project' based accounting
  14. >system on top of the standard AT&T Unix process accounting.  Projects are
  15. >represented by arbitary eight character text strings (which could be mapped
  16. >to small integers in the implementation) and each process that executes has
  17. >to be associated with one such string.  Projects can have one or more users
  18. >and each user can be a member of one or more projects (but only one project
  19. >at a time.) Users have to be able to change projects at any point with a
  20. >command and all subsequent processes executed in the same login session
  21. >have to be associated with the new project. 
  22.  
  23. >I don't really want to modify the Unix kernel unless it is absolutely
  24. >necessary.
  25.  
  26. It appears that all that is necessary is for you to write
  27. new (additional) analysis programs for the collected data
  28. (pacct* files), and to record the date-time when each user
  29. switches projects, via a short set[ug]id program.
  30.  
  31. Users can then switch between project within the same login
  32. session, simply by executing the project-switch command.
  33.  
  34. The structure of the pacct files is well documented and it
  35. looks easy enough to do a project-by-project analysis by
  36. correlating the user-project switch times with process
  37. accounting information. You can poke your project reporting
  38. stuff into the existing scripts which initiate periodic
  39. process accounting; daily/monthly/annually.
  40.  
  41. I'll leave the options/extensions up to you as an exercise. :-)
  42. -- 
  43. +-----+ Bernd Felsche                     _--_|\  #include <std/disclaimer.h>
  44. | | | | MetaPro Systems Pty Ltd          /      \ bernie@metapro.DIALix.oz.au
  45. | | | | 328 Albany Highway,              X_.--._/         Fax: +61 9 472 3337
  46. |m|p|s| Victoria Park, Western Australia 6100  v        Phone: +61 9 362 9355
  47.