Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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?

--SparkeyG

Comment on Perl and Unix Process Accounting
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-04-19 22:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls