top command truncates output

Rav rav1709 at yahoo.com
Tue Jul 22 06:05:46 UTC 2008


Hi,I would agree that I can use ps command to get the cpu utilization of various process.
But ps command gives me the average cpu utilization. I want realtime cput utiliztion of the processes.
Any other way to get the realtime cpu utilization other than using top.Top is truncating the output as I mentioned in the mail.Thanks,Rav
From: "Chet Nichols III" <chet.nichols at gmail.com>
Subject: Re: top command truncates output
To: "General Red Hat Linux discussion list"<redhat-list at redhat.com>
Message-ID:	<ff995dad0807211647x42a70ac2p789f6038d34f9e02 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1make your terminal wider? ;)
what are you trying to do, exactly? i would suggest using ps instead of top.
i don't think top will line wrap, meaning, if you want to get the full
command, you'll have to use ps.
since you can use ps to order by process cpu%, etc, and also get the full
command, you might want to try that :D
for example, this will list the cpu utilization and the full command, and
sort by cpu utilization:$ ps -ax -k pcpu -o pcpu,command
or you can shorten it to:$ ps axk pcpu o pcpu,commandgood luck!chet
On Mon, Jul 21, 2008 at 6:06 AM, Rav <rav1709 at yahoo.com> wrote:
> Hi all,>
> I was just executing the linux "top" command. But some of themessages are
> getting truncated as follows.>>> [root at devbsc2 ~]# top -b -c>
>  3238 root      16   0  9036 3032 1128 S  0.0  0.3   0:00.00 /usr/bin/perl
> /usr/lib/ipaccess/common/wrap --pid=/var/run/ipacc
>  3239 ipacommo  18   0 61988 7136 5924 S  0.0  0.7   0:00.09
> /usr/lib/orbacus/bin/nameserv -ORBconfig /etc/ipaccess/common/or
>  3248 root      16   0  9064 3112 1200 S  0.0  0.3   0:00.00 /usr/bin/perl
> /usr/lib/ipaccess/common/wrap --PID=/var/run/ipacc>
> Could somebody help me in getting the complete line.>
> Thank you in advance.> Your response will be appreciated.>> Rgds,
> Rav


      


More information about the redhat-list mailing list