摘要: #!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$myPath" fi 阅读全文
posted @ 2017-08-04 15:34 amoyzhu 阅读(4344) 评论(1) 推荐(0)