mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2022-11-12, 21:49   #12
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

1,597 Posts
Default

Code:
a=$( echo `nvidia-smi -q -i 0 | grep "Power Draw" | cut -c45-50` )
b=$( echo `nvidia-smi -q -i 1 | grep "Power Draw" | cut -c45-50` )
c=$( echo `nvidia-smi -q -i 2 | grep "Power Draw" | cut -c45-50` )
d=$( echo `nvidia-smi -q -i 3 | grep "Power Draw" | cut -c45-50` )
e=$(echo $a + $b +$c +$d | bc -l )
echo "SYSTEM DRAW :" $e "W"
if [ $e "<" 300 ] ; then                                        
echo "WARRNING - SYSTEM DRAW LOW"
else
echo   
fi
Since results is around 340W answer for this script was adding " before and after < sign
if [ $e "<" 300 ]
pepi37 is online now   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 21:54.


Wed Nov 30 21:54:27 UTC 2022 up 104 days, 19:23, 1 user, load averages: 0.88, 1.06, 0.97

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔