[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Display system monitoring counter on hard-status line?
From: |
Johannes Weiner |
Subject: |
Re: Display system monitoring counter on hard-status line? |
Date: |
Tue, 4 Sep 2007 14:10:29 +0200 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
Hi,
On Mon, Sep 03, 2007 at 06:44:10PM -0400, cga2000 wrote:
> Is there any way I can display the following on the hard-status line:
>
> . %RAM used
> . %SWAP used
> . CPU temperature
> . %CPU
I use this:
backtick 0 10 10 awk '{ printf "%sC", $2 }'
/proc/acpi/thermal_zone/THM0/temperature
And then use reference %0` in the hardstatusline. I am sure you can figure out
how to parse the other information as well.
Hannes
--
Are you looking for that "friends" stuff from C++ (if I have that
right, unless it was Java <g>). This is Lisp, we just shoot from the
hip and do not worry about that stuff.
-- Ken Tilton
signature.asc
Description: Digital signature
Re: Display monitoring counterx on status line? [SOLVED], cga2000, 2007/09/07