[NTLUG:Discuss] OT: general UNIX question

Fred James fredjame at fredjame.cnc.net
Wed Mar 9 11:39:23 CST 2005


Victor Brilon wrote:

>
> On Mar 9, 2005, at 10:13 AM, Fred James wrote:
>
>> All
>> There is a need to know which files within a certain group have the 
>> most activity.  The need is to quantify that in some way.  Any clues? 
>> Thank you in advance for any help you may be able to offer.
>> Regards
>> Fred James
>>
>>
> What does "activity" mean? Files looked at? Files edited? Something 
> else? If you expect others to do your homework for you, you at least 
> need to be more specific about what you want.
>
> Victor

All
Oops - a little vague there, but I didn't really want to exclude any 
ideas at the moment.

The files in question are datafiles, and the question is how often is 
each datafile accessed.  The original thought was for count, as opposed 
to frequency or duration, but those are not excluded as yet.

What I have found so far is 'acctcom', which I am not sure is on every 
UNIX, having so far found it only on HP and SGI.  By running 'acctcom' 
just before midnight, and using options to limit the output to just 
processes started at midnight, and omitting the column headings, the 
output should be close to one line/record per process associated with a 
particular file.  That can be piped through 'wc' and 'awk' to get the 
line count, which can be appended to a text file to generate a file of 
historical data.

But I would still appreciate any thoughts or suggestions.  Thank you for 
any help you may be able to offer.
Regards
Fred James

-- 
Compassion alone stands apart from the continuous traffic between good and evil proceeding within us.  "Om Mani Padme Hum"





More information about the Discuss mailing list