modern_lisp-machine/misc/scripts/temperature-gpu.sh

8 lines
233 B
Bash
Executable File

EXEC_SHELL_PATH=$(command -v bash)
# Use sensors command and extract GPU temperature data
temperature=$(sensors | grep "edge" | awk '{print $2}' | cut -c 2-)
# Output the formatted temperature with a label
echo "GPU: $temperature"