RE: limit number of process in top with non-interactive mode

From: McDougall, Marshall (FSH) (MarMcDouga_at_gov.mb.ca)
Date: 09/09/05

  • Next message: Ed Wilts: "Re: multipath support status"
    Date: Fri, 9 Sep 2005 08:23:33 -0500
    To: <mnikhil.juno@gmail.com>, "General Red Hat Linux discussion list" <redhat-list@redhat.com>
    
    

    -----Original Message-----
    From: redhat-list-bounces@redhat.com
    [mailto:redhat-list-bounces@redhat.com] On Behalf Of mnikhil m
    Sent: Friday, September 09, 2005 5:14 AM
    To: General Red Hat Linux discussion list
    Subject: limit number of process in top with non-interactive mode

    Top command in Linux is allowing to control the number of processes only
    in
    the
    interactive mode. I want to control the number of processes in
    non-interactive batch
    mode. Is there any other version of top available ? Or is there a way to
    do
    so with
    the current version itself?

    Note: Manual page for top is inappropriate with the command.
    For example, "top 10" reports an improper use of command though it is
    valid
    according to the man page.
     [Actually this is asked by one of my colleague, asking here as I am out
    of
    answer]
     Regards,
    Nikhil

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=subscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    If you are looking to do it non-interactively, just add a couple more
    lines to your batch job to get the desired outcome.  I am not the best
    scripter, but something like:
    Top -b -n 1 > /tmp/top.txt
    Head -n 22 /tmp/top.txt > /tmp/top2.txt
    This gives me all the top header info and the first 10 processes.  I
    know it's not pretty, but you get the idea.
    Regards, Marshall
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Ed Wilts: "Re: multipath support status"

    Relevant Pages

    • Re: Access 2007 Technical Questions
      ... you may want to bypass the validation rules such as user clicking on the ... on the form, all validation rules on the active control are processed, ... Enter Event doesn't even take place on the command button cause the ... If you used either of these, there would be no reason to check ...
      (microsoft.public.access.formscoding)
    • Re: Word 2007 -- How Alone Am I?
      ... One more question -- when I open the directory in Word (control O), ... QAT are assigned a Key Tip by the position of the command. ... click the Microsoft Office Button and then click New. ... and then click "Add to Quick Access Toolbar". ...
      (microsoft.public.office.misc)
    • Re: Required reading for HP executives
      ... the other 2 will still control ... harware in it to decide which command has majority when it gets multiple ... The mid tier is the "server side" management ... Each MDM ...
      (comp.os.vms)
    • Re: Suggestions for X10/Automation Widgets
      ... X-Lock" by Jeff Mazur that was along the lines of what The Alien is ... It listened to the powerline and, when it heard an alien X-10 ... command, jammed it by corrupting the signal. ... You need physical control of a device to enroll ...
      (comp.home.automation)
    • Re: CreateControl command Crashes Access
      ... detailed form with lots of command buttons being created in code. ... disables all the command buttons and then re-enables only ... the same button then becomes a Back to Inspection ... 'set control to be disabled and set tooltip ...
      (microsoft.public.access.formscoding)