LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-13-2010, 12:29 PM   #1
knockoutned
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0
Differences in output between top in batch and interactive mode


Hi,

I am trying to figure out why top run in batch mode outputs so many more lines than when run in interactive mode. For example:
% top -n 1 | wc -l
54
% top -n 1 -b | wc -l
1026

I am running RHEL 3

Thanks
 
Old 07-13-2010, 12:42 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Because it is detecting the size of your window and only displaying that many lines. I make my window larger and it displays many more lines in interactive mode. Batch mode is displaying all the processes.
 
Old 07-13-2010, 01:03 PM   #3
knockoutned
LQ Newbie
 
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thank you
 
  


Reply

Tags
batch, top


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interactive mode nagavinodh Linux - Newbie 6 04-07-2010 07:22 AM
Running ‘top’ with ‘Irix mode’ off in batch mode alexz1011 Linux - Software 1 10-02-2009 04:29 PM
top in batch mode doesnt work alebo Linux - General 4 07-27-2007 02:17 AM
Using top in batch mode neothephoenix Linux - Server 5 06-09-2007 03:21 PM
permanant interactive mode stand Linux - General 1 04-19-2004 06:21 AM


All times are GMT -5. The time now is 11:02 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration