| Unix Content | Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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; |
|
#2
|
| 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 |