LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Differences in output between top in batch and interactive mode (https://www.linuxquestions.org/questions/linux-general-1/differences-in-output-between-top-in-batch-and-interactive-mode-819618/)

knockoutned 07-13-2010 11:29 AM

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

crabboy 07-13-2010 11:42 AM

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.

knockoutned 07-13-2010 12:03 PM

thank you


All times are GMT -5. The time now is 08:18 PM.