问轩博客

展开菜单

判断文件的后缀名

判断文件的后缀名
#!/bin/sh if expr "$1" : ".*\.pub" &>/dev/null  then    echo "you are using $1"  else    echo "you ...

​利用let计数监控web服务状态

​利用let计数监控web服务状态
利用let计数监控web服务状态 #监控服务状态 ServerMonitor () { #服务状态监控 timeout=10 fails=0 success=0 while true  do      /usr/bin/wget --timeout=$timeout --tries=1 http://192.168.1.1.101/&nbs...