The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
How to kill top command using script?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to kill top command using script?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
08-04-2008
broli
Registered User
Join Date: Dec 2007
Location: Argentina
Posts: 215
Quote:
Originally Posted by
shamrock
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)
broli
View Public Profile
Find all posts by broli
Find broli's past nominations received
Find broli's present nominations given