记一次在 shell 脚本中使用 tail 引发的血案 2018/08/03 | Shell | admin | 暂无评论 | 2474 views 在一个夜黑风高的深夜,我的分别在2台服务器上的tomcat都同时down了,都报出了如下的错误信息: Jul 31, 2018 11:40:00 PM com.ex.service.voip.VoipService finishTransactions INFO: scheduled finish VoIP transactions 20……
shell函数返回字符串用echo 2018/03/23 | Shell | admin | 暂无评论 | 2112 views shell中要返回字符串不能使用return,用echo # cat test.sh #!/bin/bash logpath="/data/log/file1.log" getpath() { echo $logpath } case &qu……