Thread: Terminal output to a file
-
February 3rd, 2009, 10:01 AM #1Junior Member
- Join Date
- Feb 2009
- Posts
- 1
Terminal output to a file
Hi,
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.
rgds,
Rajeev Pariyadathu
-
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
.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Help with hyper terminal?
By d4rk_5t4r in forum Applications and Operating SystemsReplies: 2Last Post: September 7th, 2004, 12:24 AM -
terminal
By carlene in forum Technical SupportReplies: 5Last Post: April 7th, 2003, 10:07 PM -
Output to file
By novadragoon in forum Webmastering and ProgrammingReplies: 1Last Post: March 18th, 2003, 12:12 AM -
Terminal question
By hav0c in forum General Tech DiscussionReplies: 1Last Post: August 28th, 2002, 12:55 PM -
Terminal Services HELP!!!
By edwelly in forum Applications and Operating SystemsReplies: 4Last Post: April 24th, 2002, 10:40 AM



LinkBack URL
About LinkBacks



Reply With Quote

I think Chuckie should go to jail for slinging such obvious BS, lol . . .
Voter Suppression is Alive and...