Thread: Terminal output to a file
February 3rd, 2009, 10:01 AM #1
- Join Date
- Feb 2009
Terminal output to a file
I need the top command result ina file. For that i given top > file1.txt. But when i am opened , it shown some characters and figures.
How to save and show the result of top command in a file?
If anybody knows pls send me the correct syntax or method. Lots of Thanks in advance.
February 7th, 2009, 11:56 AM #2
Hi, have you tried the -b (Batch mode) flag ? According to the man pages:
-b : Batch mode operation
Starts top in ’Batch mode’, which could be useful for sending out‐
put 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.
Hope this helps .
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By d4rk_5t4r in forum Applications and Operating SystemsReplies: 2Last Post: September 7th, 2004, 12:24 AM
By carlene in forum Technical SupportReplies: 5Last Post: April 7th, 2003, 10:07 PM
By novadragoon in forum Webmastering and ProgrammingReplies: 1Last Post: March 18th, 2003, 12:12 AM
By hav0c in forum General Tech DiscussionReplies: 1Last Post: August 28th, 2002, 12:55 PM
By edwelly in forum Applications and Operating SystemsReplies: 4Last Post: April 24th, 2002, 10:40 AM