摘要:
监控内存并发邮件 1空闲内存 free -m | awk 'NR==3 {print $NF}' 2邮件配置 #/etc/mail.rc set from oldboy@163.com smtp=smtp.163.com set smtp-auth-user=oldboy smtp-auth-pas 阅读全文
摘要:
#!/bin/sh path=/server/scripts [ ! -d "$path" ] && mkdir $path #menu cat <<END 1.[install lamp] 2.[install lnmp] 3.[exit] pls input the num you want: 阅读全文
摘要:
#!/bin/bash # filename : jisuan.sh # description : add, subtract, multiply, and divide print_usage(){ echo -e "USAGE:$0 NUM1 {+|-|*|%} NUM2" exit 1}if 阅读全文