
FreeBSD
book2016
有诸于内,必形于外
展开
-
How to solve the problem witch is the system send many emails when cron have something wrong
StorageServer# ee /etc/crontab在第一行加上MAILTO="" StorageServer# ps auxwww | grep cronroot 441 0.0 0.0 1368 836 ?? Is 23Jul08 0:10.74 /usr/sbin/cron -sroot 72434 0.0 0.0 1412 1028原创 2008-09-01 09:43:00 · 727 阅读 · 0 评论 -
shell学习笔记[grep,sed,awk,sort,for,until,while]
1.grep常用做查找,sed常用做替换,awk常用做切割后格式化输出 例: tail -50 lighttpd.accesslog |grep ".flv"|awk '{print $7}'|sed 's///f//1////g'|sed 's//.flv//g' 数据: 222.73.161.121 - - [21/May/2009:10:21:41 +0800] "GET /f/1原创 2009-08-12 11:31:00 · 1489 阅读 · 0 评论