Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Monitoring File Execution

by andreychek (Parson)
on Jun 25, 2001 at 20:53 UTC ( #91344=note: print w/ replies, xml ) Need Help??

in reply to Monitoring File Execution

If you are using some variant of UNIX/Linux, there is something called "Process Accounting". It is capable of logging every process, and does so when the process terminates.

It actually comes with RedHat 7.1 (I don't know about previous versions), and the package is called psacct.. so you can just do a

rpm -qa|grep psacct
to see if it's installed.

As far as documentation goes, you can try:
man accton man acct man sa
And to keep things on topic for this site, by all means, you could use a perl script to dig through the log file to generate usage information and statistics for you if 'sa' doesn't do what you are looking for :-)

As a side note -- process accounting is often something used on only the most secure of sites. Not all users would be fond of having their every command logged. It can border on being Big Brother. However, I'm not saying you shouldn't do it, and there are definitely times where it is useful or necessary.

Comment on Re: Monitoring File Execution
Select or Download Code
Re: Re: Monitoring File Execution
by draper7 (Scribe) on Jun 25, 2001 at 23:03 UTC
    Hey, thanks for the reply and pointing me in the right direction. Sorry about the off topic question :-).

    He returned to his room, closed the door, and meditated in a high mental state throughout the night.
      No problem at all. I wouldn't worry about it being offtopic.. I'm somewhat new here, but it seems to me that anything capable of even involving Perl can be considered on topic. Simply mention the word Perl in your post and your fine ;-)

      Good luck!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://91344]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-10-21 11:10 GMT
Find Nodes?
    Voting Booth?

    For retirement, I am banking on:

    Results (100 votes), past polls