Advertisement

capturing output of top command in solaris??

Started by June 29, 2006 07:07 AM
1 comment, last by GreggBz 18 years, 4 months ago
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;
Can you not just do top >> file.txt? That seems to work on OSX.
Advertisement
Top Manpage.

http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?top+1


You might try to do something like this:

top -b -n 100 -d 10.00 > /tmp/touout.lst

As a side note, why is there not a man page for top in the full installation of Solaris 8?

This topic is closed to new replies.

Advertisement