shell监控linux系统进程创建脚本分享
复制代码 代码如下:#!/bin/shwhile truedops ax -o command | sort | uniq > 1.txtusleep 100000ps ax -o command | sort | uniq > 2.txtdiff 1.txt 2.txt | grep "^+[^+]" | while read adoa=`echo ${a#*+}`if [[ "$a" != "uniq" ]] && [[ "$a" != "...