monitor.sh 166 字节
Newer Older
1 2 3 4 5 6 7 8
while :
do
    dlog=`taos -s "show dnodes"`
    mlog=`taos -s "show mnodes"`
    echo "$dlog" | tee -a dnode.log
    echo "$mlog" | tee -a mnode.log
    sleep 1s
done