Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Perl and Unix Process Accounting

by SparkeyG (Curate)
on Mar 08, 2002 at 16:40 UTC ( [id://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

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?
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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2025-02-07 22:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (95 votes). Check out past polls.