Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Running 'top' command (of linux) for few minutes and then come out of system command (of perl)

by robby_dobby (Hermit)
on Mar 19, 2014 at 09:32 UTC ( [id://1078916]=note: print w/replies, xml ) Need Help??


in reply to Re: Running 'top' command (of linux) for few minutes and then come out of system command (of perl)
in thread Running 'top' command (of linux) for few minutes and then come out of system command (of perl)

++! Now that you mention it, I remember using -n for running top through 'n' iterations of page refresh. There's also the 'batch mode' for passing output from top to other programs. Here's what my copy of manpage has to say about this:
-b : Batch mode operation
            Starts  top  in 'Batch mode', which could be useful for sending output from top to other programs
            or to a file.  In this mode, top will not accept input and runs until the iterations limit you've
            set with the '-n' command-line option or until killed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-03-29 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found