def killTheRpcAgent():
"""
"""
print("Will attempt to kill the rpc-agent - this will now be handled by the SDK")
killCommand = "ps aux | grep -i 'rpc-agent.*port.*8778' | awk '{print $2}' | xargs kill -9"
# Finding the process based on the port number is safer than relying on the pid number that it was started on
os.system(killCommand)
ConsumerFlowTester.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录