capturing output of top command in solaris??

This is a discussion on capturing output of top command in solaris?? within the SUN forums, part of the Systems category; I want to capture the output of TOP command in a file over a period time on solaris with some delay. I want to avoid re-launching the TOP and redirecting ...

Go Back   Unix Linux Forum > Technologies & Tools > Systems > SUN

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 10-06-2007, 01:36 AM
Default capturing output of top command in solaris??

I want to capture the output of TOP command in a file over a period
time on solaris with some delay. I want to avoid re-launching the TOP
and redirecting the same,in a while loop as i don't get IDLE cpu in
that.

i tried following:

while true
do
top >> t.log
sleep 10
done;

Reply With Quote
  #2  
Old 10-06-2007, 01:36 AM
Default Re: capturing output of top command in solaris??

linux_bp wrote:
> I want to capture the output of TOP command in a file over a period
> time on solaris with some delay. I want to avoid re-launching the TOP
> and redirecting the same,in a while loop as i don't get IDLE cpu in
> that.
>
> i tried following:
>
> while true
> do
> top >> t.log
> sleep 10
> done;
>


You could try "sysstat -c 10 > t.log". Maybe this will give you even
more information than top...

You can get sysstat here: http://www.maier-komor.de/sysstat.html

HTH,
Tom
Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 05:39 PM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger