getfan 201 B

12345678910
  1. #!/bin/sh
  2. # get CPU fan speed in RPM
  3. # platforn specific
  4. sed -n '2s/speed:\t\t//p' /proc/acpi/ibm/fan
  5. # alternatives
  6. #grep speed: /proc/acpi/ibm/fan | cut -f3
  7. #cut -f3 /proc/acpi/ibm/fan | sed -n 2p