- 博客(3)
- 资源 (9)
- 收藏
- 关注
原创 shell每秒执行一次
每秒执行一次#!/bin/bash step=1 #间隔的秒数,不能大于60 for (( i = 0; i < 60; i=(i+step) )); do $(curl 'http://test.wuchaoyu.com') sleep $step done exit 0 * * * * * sh /home/t
2016-05-23 14:03:17 4701
原创 随便收集
find /tol/htdocs/ -name "*.html" -type f -cmin -1 |wc -l find /tol/htdocs/ -name "*.html" -type f -mmin -1 |wc -l sort log.txt |uniq -d 查询一个文本里面重复的行
2016-05-23 11:51:14 200
原创 shell把nginx执行php并且是200的状态找出来
#!/bin/bash function catfile() { cat $1 | while read line do if [[ $line =~ ".php" ]] then if [[ $line =~ "200 -" ]] then echo -e $line "\n" $1 "\n" >> 1.log
2016-05-23 10:33:20 387
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人