复制代码 代码如下:
#!/bin/shwhile truedo ps ax -开发者_云计算o command编程客栈 | sort | uniq > 1.编程客栈txt usleep 100000 ps ax -o www.devze.comcommand | sort | uniq > 2.txt diff 1.txt 2.txt | grep '^\+[^\+]' | while read a do a=`echo ${a#*+}` ifthNomHkPFO [[ "$a" www.devze.com!= "uniq" ]] && [[ "$a" != "sort" ]] && [[ "$a" != "" ]] then echo $a fi donedoneshell监控linux系统进程创建脚本分享
复制代码 代码如下:#!/bin/shwhile truedo ps ax -开发者_云计算o command编程客栈 | sort | uniq > 1.编程客栈txt usleep 100000 ps ax -o www.devze.comcommand | sort | uniq > 2.txt
0
0
0
精彩评论