Commit 0cbf5728 by jajapi

fixed line 403, fucntion dstat

parent c42638ff
......@@ -41,8 +41,10 @@ function CHECK_PROCESS()
function RUN_DSTAT()
{
echo -e "\n-------------- dstat --------------"
dstat -lcdngy 1 10
dstat -nf 1 10
#dstat -lcdngy 1 10
#dstat -nf 1 10
python2 /usr/bin/dstat -lcdngy 1 10 # YB error로 출력되지 않아 수정
python2 /usr/bin/dstat -nf 1 10
DRAW_A_LINE
}
......@@ -398,8 +400,7 @@ END
cat $DEFAULT_UWSGI_LOG | grep --color=yes -E "1.1 400" |grep --color=yes -E "2018"|grep --color=yes "Nov"
echo -e "\n----------------\x1b[34m"detail log"\x1b[0m------------------------\n"
echo -e "\nPlease see $DEFAULT_UWSGI_LOG
echo -e "\nPlease see $DEFAULT_UWSGI_LOG"
echo -e "\n\x1b[31m"-------------------------------------------------------------------------------------------"\x1b[0m"
#cat $DEFAULT_UWSGI_LOG | grep -Ev "generated" > $REFINED_UWSGI_LOG # uwsgi.log 파일에서 불필요한 내용을 제외함
......
#! /bin/bash
TEST=/te1
cat $TEST | sed 's/\(up\)/\x1b[31m\1\x1b[0m/' > $TEST
cat $TEST
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment