python3 实现应用启动及关键字检测
我们在应用的时候,经常需要实现应用启动及检测功能。我们启动命令python3 restart_and_watchlog.py “sh bin/start.sh” “logs/log.log” “Started Application in” 20第一个restart_and_watchlog.py 检测脚本sh bin/start.sh 应用启动命令logs/log.log 应用启动日志Started Application in 关键字20 过期时间10s# -*- coding: ut