Files
oceanbase/tools/obcdc/tests/watch_trans_task.sh
2022-03-25 18:10:38 +08:00

5 lines
192 B
Bash
Executable File

LOG_FILE=log/liboblog.log
watch -n 1 "if [ -f $LOG_FILE ]; then grep TRANS_TASK_POOL $LOG_FILE | grep STAT | awk '{print \$1, \$2, \$9, \$10, \$11, \$12, \$13, \$14, \$15}' | tail -n 5; fi"