Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Perl and Unix Process Accounting

by SparkeyG (Curate)
on Mar 08, 2002 at 16:40 UTC ( #150362=perlquestion: print w/replies, xml ) Need Help??

SparkeyG has asked for the wisdom of the Perl Monks concerning the following question:

For the prupose of balancing long running applications over a pool machines, I've decided to use unix process accounting to give me data as to each user's impact on the machine. I will use this data then to even out the impact of the x many users over y machines.

After a cursery search, I was unable to find any perl modules that manipulate or utilize the data generated by acct. Do they exsist?

Does anyone here have expierence using pacct and it's children? Am I barking up the wrong tree you think? And how can I use perl to best leverage this data?


Replies are listed 'Best First'.
Re: Perl and Unix Process Accounting
by joealba (Hermit) on Mar 08, 2002 at 17:34 UTC
    Rather than dropping little code bits on you, I HIGHLY recommend that you take a look at Perl for System Administration. The fourth chapter is titled User Activity, and at a glance, it seems to have lots of tips pertaining to your question.

    Good luck!

    Update: Okay, maybe that 'glance' should have been longer... I haven't found much for pacct interfaces in Perl, but Proc::ProcessTable looks like it may be of some help to you.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://150362]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-09-27 07:34 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (118 votes). Check out past polls.