+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior 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

  2. #2
    Member Dbest's Avatar
    Join Date
    Oct 2001
    Location
    Carolina,P.R.
    Posts
    396
    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

  1. Help with hyper terminal?
    By d4rk_5t4r in forum Applications and Operating Systems
    Replies: 2
    Last Post: September 7th, 2004, 12:24 AM
  2. terminal
    By carlene in forum Technical Support
    Replies: 5
    Last Post: April 7th, 2003, 10:07 PM
  3. Output to file
    By novadragoon in forum Webmastering and Programming
    Replies: 1
    Last Post: March 18th, 2003, 12:12 AM
  4. Terminal question
    By hav0c in forum General Tech Discussion
    Replies: 1
    Last Post: August 28th, 2002, 12:55 PM
  5. Terminal Services HELP!!!
    By edwelly in forum Applications and Operating Systems
    Replies: 4
    Last Post: April 24th, 2002, 10:40 AM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews