Hallo ihr,
Ich würde mir gerne von dem Programm lm-sensors die Lüfterdrehzahl anzeigen lassen.
Der loop funktioiniert für die temp Anzeige,wie muss ich das Umbiegen damit der mir anstatt die Temp,die Lüfterdrehzahl von fan1 ausgibt:
1 2 3 4 5 6 7 8 | open (SENSORS, "sensors -u $chip |") or die; while (<SENSORS>) { if (/^\s+temp1_input:\s+[\+]*([\-]*\d+\.\d)/) { $temperature = $1; last; } } close(SENSORS); |
Hier die Angaben von sensors:
#coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +34.0°C (high = +80.0°C, crit = +100.0°C)
Core 0: +32.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +32.0°C (high = +80.0°C, crit = +100.0°C)
Core 2: +33.0°C (high = +80.0°C, crit = +100.0°C)
Core 3: +32.0°C (high = +80.0°C, crit = +100.0°C)
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +119.0°C)
temp2: +29.8°C (crit = +119.0°C)
asus-isa-0000
Adapter: ISA adapter
cpu_fan: 0 RPM
nouveau-pci-0100
Adapter: PCI adapter
fan1: 722 RPM
temp1: +34.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +105.0°C, hyst = +5.0°C)
(emerg = +135.0°C, hyst = +5.0°C)
Kann mir dabei jemand helfen?
lg,