All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: Output
Date: Thu, 19 May 2005 06:23:57 +0000	[thread overview]
Message-ID: <20030529100821.0b2a8edf.khali@linux-fr.org> (raw)
In-Reply-To: <AC89BDA1E3CCBC42B9CA5B50FE7934D302696D67@es10snlnt.sandia.gov>


> Sensors came installed with as a driver on Redhat 9 (kernal
> version2.4.20-8) which is great.  But I can't figure out where I can
> modify the layout of the output.  I've looked at sensors.c and
> sensors.conf.  I can change the labels, but I can't change the format
> of the output for sensors.  Help!!!

I'm not sure I fully understand what you want to do. You are actually
supposed to use sensors.conf to modify what sensors outputs. The label
and ignore lines will let you rename labels and suppress irrelevant
output lines, repectively. But it won't let you fully change the output.

If you really need a completely different output, there are three things
you can try:
1* Use another program. Sensors is mostly existing as a sample program
to demonstrate how to use libsensors. For a list of known programs, see
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/useful_addresses.html.
You may also try searching for "sensors" in Freshmeat.
2* Write your own program. Look at sensors' source code and write some
more convenient program. If you use sensors' code, even partly, your new
program will obviously have to be GPL.
3* Write a wrapper, that reads the output of sensors, and reformats it
as you wish. A programming laguage as Perl would be particularly suited
for such a work.

As a fourth alternative, you may read the sensors values directly from
/proc. Using the library is the recommended way though.

Hope it helps.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

  reply	other threads:[~2005-05-19  6:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:23 Output Yao, Rose B
2005-05-19  6:23 ` Jean Delvare [this message]
     [not found] <18a8ddb18a33a6.18a33a618a8ddb@shaw.ca>
2006-01-13 21:13 ` Output Justin Seitz
2006-01-13 21:18   ` Output Randy.Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2003-03-13  6:44 OUTPUT Paulo Andre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030529100821.0b2a8edf.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.