The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 08-04-2008
broli's Avatar
broli broli is offline
Registered User
  
 

Join Date: Dec 2007
Location: Argentina
Posts: 215
Quote:
Originally Posted by shamrock View Post
Use the -f option to top...it outputs one display to the named file and exits automatically.


Code:
top -f /path/to/outfile
depends on what version of top
in my end, the option is
-b (for batch)
and -n 1 (for 1 iteration)