return 1
fi
- ssh -q $HOSTNAME <<EOF
+ ssh -qn $HOSTNAME <<EOF
while [ 1 ]; do
df=`df --output=pcent "$DRIVE" | tail -1 | sed 's/[^0-9]//g'`
ts=`date '+%s'`
- nohup stdbuf -o0 echo "\$ts|$HOSTNAME|DISK-$LABEL-USED|\$df" >> $OUTPATH
+ stdbuf -o0 echo "\$ts|$HOSTNAME|DISK-$LABEL-USED|\$df" >> $OUTPATH
sleep $DELAY
done &
EOF
return 1
fi
- ssh -q $HOSTNAME <<EOF
+ ssh -qn $HOSTNAME <<EOF
while [ 1 ]; do
ts=`date '+%s'`
- nohup stdbuf -o0 sensors | \
+ stdbuf -o0 sensors | \
sed 's/ */ /g' | \
sed 's/[(].*[)]//g' \
| awk -v ts=\$ts -v host=\$HOSTNAME 'BEGIN {
start()
{
- running=`ssh $HOSTNAME "cat /home/bdsm/.vmstat.pid 2>/dev/null | \
+ running=`ssh -q $HOSTNAME "cat /home/bdsm/.vmstat.pid 2>/dev/null | \
xargs ps -T | \
grep -v PID | \
wc -l"` 2>/dev/null
fi
# Check what options awk supports
- if [ "`ssh -q $HOSTNAME \"echo | awk -W interactive '{print 1}' 2>&1 1>/dev/null\"`" != "" ]; then
+ if [ "`ssh -qn $HOSTNAME \"echo | awk -W interactive '{print 1}' 2>&1 1>/dev/null\"`" != "" ]; then
awkopt=""
else
awkopt="-W interactive"