Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 07-13-2010, 11:29 AM   #1
LQ Newbie
Registered: Jul 2010
Posts: 5

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


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
% top -n 1 -b | wc -l

I am running RHEL 3

Old 07-13-2010, 11:42 AM   #2
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, 12:03 PM   #3
LQ Newbie
Registered: Jul 2010
Posts: 5

Original Poster
Rep: Reputation: 0
thank you


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 06:22 AM
Running ‘top’ with ‘Irix mode’ off in batch mode alexz1011 Linux - Software 1 10-02-2009 03:29 PM
top in batch mode doesnt work alebo Linux - General 4 07-27-2007 01:17 AM
Using top in batch mode neothephoenix Linux - Server 5 06-09-2007 02:21 PM
permanant interactive mode stand Linux - General 1 04-19-2004 05:21 AM

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

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