Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Load Monitor

by arhuman (Vicar)
on Nov 02, 2001 at 20:59 UTC ( [id://122850]=note: print w/replies, xml ) Need Help??


in reply to Load Monitor

I just don't understand your :
system("cat /proc/loadavg"); while (<STDIN>) {
why not just :
while (</proc/loadavg>) {

UPDATE :
Furthermore if it returns only one line (as I suspect) on all platforms, the loop is useless...

Anyway rob_au pointed us to the right direction today with his post about Proc::ProcessTable

"Only Bad Coders Code Badly In Perl" (OBC2BIP)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found