LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2007, 02:52 AM   #1
NoopurTiwari
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
problem with output of ' top -n 1 ' command


Hi

I am new to linux ..i tried executing the following command top -n 1 | head -4 | tail -2 >t.t
when i try opening the t.t file :the contents of the file are not as displayed on standard output..its gets encoded (maybe space is encoded or something).i need to display the output in a html file via a perl script, but in standard format...kindly help
 
Old 05-29-2007, 03:45 AM   #2
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 593

Rep: Reputation: 30
hello , am getting this
# cat t.t
Cpu(s): 6.9% us, 1.8% sy, 0.9% ni, 89.0% id, 1.3% wa, 0.1% hi, 0.0% si
Mem: 255236k total, 254024k used, 1212k free, 2324k buffers

I dont found any encrypted format.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Determinig Top Output XaViaR Linux - General 2 02-13-2007 05:41 PM
top command ram problem displaying negative value for process xekhz Linux - General 1 06-10-2006 04:01 AM
intepret 'top' output and misc Swakoo Linux - Newbie 1 01-05-2006 01:56 AM
Output of 'top' as backgrond Burgin Linux - General 2 06-09-2005 06:18 PM
Odd output of 'top' philforrest Linux - General 1 07-20-2004 01:05 AM


All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration