Menu

#6 Support for commands that return a number

open
nobody
5
2005-06-04
2005-06-04
Anonymous
No

I would like to have support for any command that
returns a number. My problem is with my SATA drives.
The first problem is that ksensors only tries to do
hddtemp on /dev/hd[a-z] drives and the SATA drives are
seen as /dev/sd[a-z]. But even if you fixed that
hddtemp wouldn't work for these drives because hddtemp
doesn't work for them (if I try it the result is "drive
is sleeping")

But with a kernel patch and smartctl I can get the
temperature like this:

smartctl -A -d ata /dev/sda | grep Temp | sed 's/.*-
*//' |sed 's/ .*//'

So It would be nice to have an interface to ksensors
where I can put in any command and ksensors would
expect a number as result.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.