BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} top displayed twice?



On Thu, 2005-09-29 at 00:15, Van Diep wrote:
> Hi guys,
> 
> I am trying to add top to display in the CPU column. What I did was edit the
> $BBHOME/etc/bbsys.sh file to include TOP="/usr/bin/top" and edit the
> $TOPARGS variable to "-b -n 15".
> 
> It display on BB ok but for some reasons, top output displayed twice on the
> page
> 
> I am running Big Brother V3.0 on Redhat Linux server. Could anyone please
> tell me how to remove that second top display or truncate the output to
> limit it to say 30 lines only?

I'd guess that "-n" is actually the number of iteration and not the
number of lines. You should try "-b -n 1" and see if that gets you
a single page.

If you want to restrict the number of output lines, and your version
of "top" does not support this, you may need to hack on bb-cpu.sh
and add a "head" command to trim the output.

Cheers, Phil.



-- 
Preudhomme's Law of Window Cleaning: It's on the other side.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index