Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!gatech!gt-cmmsr!auc!maw From: maw@auc.UUCP (Michael A. Walker) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: System Accounting Message-ID: <32128@auc.UUCP> Date: Mon, 3-Aug-87 16:05:52 EDT Article-I.D.: auc.32128 Posted: Mon Aug 3 16:05:52 1987 Date-Received: Tue, 4-Aug-87 05:35:55 EDT Organization: Atlanta University, Atlanta, GA Lines: 34 Keywords: accounting Xref: mnetor comp.unix.questions:3452 comp.unix.wizards:3547 I am presently working on a system accounting program for our systems that are running SYSTEM V Ver 2.0 2 UNIX. The program should total the cpu time, connect time, and disk usage for each login according to which group they belong. However, I run into some problems that I have traced back to the structure that I assumed the data file tacctMMDD was in. The following is my assumption of the structure: struct ios { int ta_uid; char ta_name[8]; float ta_cpu[2]; float ta_kcore[2]; float ta_con[2]; float ta_du; long ta_pc; unsigned short ta_sc; unsigned short ta_dc; unsigned short ta_fee; } io; If anyone has the source code to the accounting programs(i.e. runacct, monacct, etc.), please check to see if the above structure is correct. If it is not, please e-mail me the correct structure as soon as possible. Also, if anyone knows if, for any reason other than system crashes and the like, the data file tacctMMDD could become corrupt, please e-mail me this also. Thank you. -- <-----------------------------------------------------------------------------> < Michael A. Walker | Operator | AUC Computational Center > < gatech!gt-cmmsr!auc!maw | <<<<>>>> | "There is strength in diversity." > <----------------------------------------------------------------------------->