We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3519d4f commit c4b9ee1Copy full SHA for c4b9ee1
snmp/ntp-server.sh
@@ -75,7 +75,7 @@ if [ "$VER" = "4.2.6p5" ]; then
75
else
76
USECMD=$(echo "$BIN_NTPQ" -c iostats 127.0.0.1)
77
fi
78
-CMD2=$($USECMD | $BIN_TR -d ' ' | $BIN_CUT -d : -f 2 | $BIN_TR '\n' ' ')
+CMD2=$($USECMD 2>/dev/null | $BIN_TR -d ' ' | $BIN_CUT -d : -f 2 | $BIN_TR '\n' ' ')
79
80
# shellcheck disable=SC2086
81
TIMESINCERESET=$(echo $CMD2 | $BIN_AWK -F ' ' '{print $1}')
0 commit comments