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

8 lines
233 B
Bash
Raw Normal View History

2024-06-01 05:00:40 +00:00
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"