摘要: vmstat 1 |head -n 4 |tail -n 1 |awk '{print $13}' 阅读全文
posted @ 2015-04-11 23:51 狱血 阅读(633) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashctime=`date +%x%T`monitor_dir=/home/jk/if [ ! -d $monitor_dir ]; then mkdir $monitor_dirficd $monitor_dirweb_stat_log=web.statusif [ ! -f $... 阅读全文
posted @ 2015-04-11 23:48 狱血 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 对于windows用户如果用Cygwin模拟unix环境的话,里面没有带curl命令,要自己装,所以建议用Gow来模拟,它已经自带了curl工具,安装后直接在cmd环境中用curl命令就可,因为路径已经自动给你配置好了。 linux curl是一个利用URL规则在命令行下工作的文件传输工具。它支持文... 阅读全文
posted @ 2015-04-11 23:45 狱血 阅读(4980) 评论(0) 推荐(0) 编辑
摘要: linux mail 命令参数:使用mail发邮件时,必须先将sendmail服务启动。mail –s “邮件主题” –c”抄送地址” –b “密送地址” -- -f 发送人邮件地址 –F 发件人姓名 ,显示的内容为 发送的邮件内容...包含命令执行结果的MAIL发送:echo -e `ls /tm... 阅读全文
posted @ 2015-04-11 20:42 狱血 阅读(789) 评论(0) 推荐(0) 编辑