Update dsmon.sh

This commit is contained in:
2025-03-28 08:50:07 -05:00
parent 264667e7a0
commit 230ef770af

View File

@@ -392,7 +392,7 @@ RUNCMD_SUB(){
tmpfile=/tmp/.dsmon.runcmd.${host// /-}
touch ${tmpfile}.running > /dev/null 2>&1
echo -e "${idsST[Bold]}${idsCL[LightCyan]} ${host}${idsCL[Default]}${idsST[Reset]}" >> ${tmpfile}.running
if ssh_output=$( { ssh -tq -o ConnectTimeout=5 -o ConnectionAttempts=1 root@${ip} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} } > 2>&1 ) ; then
if ssh_output=$( { ssh -tq -o ConnectTimeout=5 -o ConnectionAttempts=1 root@${ip} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} } > /dev/null 2>&1 ) ; then
echo -e "${ssh_output}" >> ${tmpfile}.running
else
echo -e "${ssh_output}" >> ${tmpfile}.running