diff --git a/gpu-temp.sh b/gpu-temp.sh new file mode 100755 index 0000000..9f9569d --- /dev/null +++ b/gpu-temp.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +c_gputemp=`nvidia-smi -q | grep 'GPU Current Temp' | awk '{print $(NF-1)}'` +echo GPU Temp: $c_gputemp C