Article View: comp.unix.large
Article #11Re: Can project based accounting be done on Unix?
From: Scott Merrilees
Date: Fri, 31 Jul 1992 02:29
Date: Fri, 31 Jul 1992 02:29
23 lines
1667 bytes
1667 bytes
lindsay@watnow.waterloo.edu (Lindsay Patten) writes: >Can you not just record the time and project name when they change >projects and then go through the process accounting assigning the >cost of the process to the project then in effect? How do you then generally distinguish between one user running multiple sessions at the same time detached from a tty? On the same tty? Seems like you need some way of associating parent and child processes. The easiest way may be use utilise unused bits in the ac_flag field of the accounting record. You may need to write a syscall to do this, and you may also need to revector the fork() system call to be able to propogate this information to subprocesses. Looking at risc/os, there doesn't seem to be many spare bits in ac_flag. Maybe exit can be revectored and extra info written somewhere ? Off course, storing this extra info before exit should also be interesting. Also, how do you charge for the parent shell ? time based split, exec on new project ? -- Scott Merrilees, BHP Information Technology, Newcastle, Australia Internet: Sm@bhpese.oz.au Phone: +61 49 40 2132 Fax: ... 2165
Technical Details
Message-ID:
<1992Jul31.022941.16529@cerberus.bhpese.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!cerberus!cerberus!SmReferences:
<5453@mccuts.uts.mcc.ac.uk> <Bs6205.22L@watserv1.uwaterloo.ca>Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.large Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!cerberus!cerberus!Sm From: Sm@cerberus.bhpese.oz.au (Scott Merrilees) Subject: Re: Can project based accounting be done on Unix? Organization: BHP, Newcastle, Australia Date: Fri, 31 Jul 1992 02:29:41 GMT Message-ID: <1992Jul31.022941.16529@cerberus.bhpese.oz.au> References: <5453@mccuts.uts.mcc.ac.uk> <Bs6205.22L@watserv1.uwaterloo.ca> Sender: news@cerberus.bhpese.oz.au (News System) Lines: 23