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


Click here to return to the 'Change desktop images based on CPU load via a script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Change desktop images based on CPU load via a script
Authored by: smorr on Sep 21, '04 05:13:13PM

Run Geektool (http://projects/tynsoe.org) with the shell script:

echo ' CPU Hogs'; ps -crx -o %cpu,command | head -n 6 | tail -n 5

Set to file every 5 seconds or so.

set the font to a small nonproportional (monaco or whatever) , set the window as transparent, as "always on top" and tuck it into a corner.

It will unobstusively gives you a list of your 5 top hogs --- so you don't have to hunt for them. -- but it doesn't waste space in the dock or toolbar

Incidently Memory Hogs:

echo ' Memory Hogs'; ps -cmx -o %mem,command | head -n 6 | tail -n 5



[ Reply to This | # ]
Geektool
Authored by: ssevenup on Sep 21, '04 07:09:08PM

Nice!!

---
Mark Moorcroft
ELORET Corp. - NASA/Ames RC
Sys. Admin.



[ Reply to This | # ]
Change desktop images based on CPU load via a script
Authored by: Juneappal on Sep 23, '04 09:47:05AM

how do I put the echo command in my bashrc - I can't get all the extra 's to escape properly.



[ Reply to This | # ]