Shell

记一次在 shell 脚本中使用 tail 引发的血案

记一次在 shell 脚本中使用 tail 引发的血案

在一个夜黑风高的深夜,我的分别在2台服务器上的tomcat都同时down了,都报出了如下的错误信息: Jul 31, 2018 11:40:00 PM com.ex.service.voip.VoipService finishTransactions INFO: scheduled finis

admin admin 2018-08-03
991 0 0
shell函数返回字符串用echo

shell函数返回字符串用echo

shell中要返回字符串不能使用return,用echo# cat test.sh#!/bin/bash logpath="/data/log/file1.log" getpath() {     echo&nbsp

admin admin 2018-03-23
1.1K+ 0 0