On Tuesday 22 Sep 2009, Sharninder wrote:
> [snip]
> How *visual* do you want the output to be ?
As I said in my first post, the sort of horizontal bar chart that wget
and scp print while transferring data is fine. Something similar to
this (from wget output) would work beautifully:
22% [=======> ] 1,75,240
> If you want a pie chart like the GUI apps show, I can't think of any
> console based app that does that. If you only want the numbers, then
> why not just take the df -h (and free -m) output and use a couple of
> awk's and greps on it ?
Actually I was hoping to avoid that, but if nothing ready-made is
available then I guess it's back to Emacs and the coding board.
Come to think of it, given "free" output of the form:
total used free shared buffers cached
Mem: 3363748 2584412 779336 0 27164 874860
it would be great to represent it visually (roughly) as:
[|||||||||||=**++++---], where:
- [...] represents the whole memory
- ||...| indicates used memory that doesn't fall into any other category
- ==...= indicates shared memory
- **...* indicates buffers
- ++...+ indicates cache
- --...- indicates free memory
so you can get the whole picture in a single line. Choice of characters
could be better but you get the general idea, suggested enhancements
welcome.
Regards,
-- Raju
--
Raj Mathur [email protected] http://kandalaya.org/
GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F
PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves
_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[email protected]/