The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Identifying and grouping OS processes and APP processes wilsonee SUN Solaris 2 09-30-2008 06:26 AM
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 01:30 AM
processes jayaram_miryabb Filesystems, Disks and Memory 1 03-09-2005 05:06 AM
processes master_6ez Shell Programming and Scripting 3 11-24-2004 06:48 AM
Spawing multiple display processes from one shell. JoeTheGuy UNIX for Advanced & Expert Users 4 10-02-2002 07:35 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-22-2003
Registered User
 

Join Date: Jan 2002
Posts: 144
How Can I Have Top Display The Top 20 Processes??

how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number.

top -n 20

i want to save this output to a file and continue with the script
Forum Sponsor
  #2  
Old 05-23-2003
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
From the top man page:

Quote:
b Batch mode. Useful for sending output from top to other programs or to a
file. In this mode, top will not accept command line input. It runs until it
produces the number of iterations requested with the n option or until
killed. Output is plain text suitable for display on a dumb terminal.
Google The UNIX and Linux Forums
Closed Thread

Tags
load average, performance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0