Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View valid 'top' output on the desktop via GeekTool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View valid 'top' output on the desktop via GeekTool
Authored by: moxieboy on Aug 22, '06 07:31:04AM
I use a command leeched from the fabulous iStatPro widget...

ps -arcwwwxo "pid %cpu command" | egrep "PID|$1" | grep -v grep | head -12 | tail -11
Yields the following:

 2630   3.7 FolderShare
 4578   3.7 OmniWeb
   65   3.5 WindowServer
 4711   2.5 Microsoft Entourage
 7103   2.3 Terminal
   87   1.4 SystemUIServer
 7107   0.2 -bash
  126   0.1 Quicksilver
  175   0.1 mds
   69   0.1 ATSServer
 6757   0.1 mdimportserver
Elegant, simple, and you can set the refresh in GeekTool.

[ Reply to This | # ]
View valid 'top' output on the desktop via GeekTool
Authored by: killer54291 on Apr 11, '10 03:46:58PM

Thanks for sharing the command but it there any way to remove the pid? I don't care about pids, just process names and their cpu usage.



[ Reply to This | # ]
View valid 'top' output on the desktop via GeekTool
Authored by: killer54291 on Apr 11, '10 04:00:09PM

disregard my last comment, i figured that out. but is there any way to show vsize in megabytes instead of bytes? the current command is
ps -arcwwwxo "%cpu vsize command" | egrep "PID|$1" | grep -v grep | head -12 | tail -11

but that shows
1.1 22222222 command
2.2 33333333 command
3.3 44444444 command
etc.

and i want
1.1 22M command
2.2 33M command
3.3 44M command
etc.



[ Reply to This | # ]