#!/usr/bin/env bash # 添加执行权限 chmod +x ../../tools/base/* # 统计BUS通道数量 Count=$(grep 'Channels type="ChannelCnf"' ./msgq_config.xml | wc -l) # 循环停止BUS通道 for ((i=0;i<${Count};i++)) do ../../tools/base/tbusmgr -D 1 -C ./msgq_config.xml done