Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Perl and Unix Process Accounting

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.

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

Replies are listed 'Best First'.
Re: Perl and Unix Process Accounting
by joealba (Hermit) on Mar 08, 2002 at 12: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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://150362]
Approved by root
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.