源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

shell监控linux系统进程创建脚本分享

  • 时间:2021-03-03 06:51 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:shell监控linux系统进程创建脚本分享
[u]复制代码[/u] 代码如下:
#!/bin/sh while true do  ps ax -o command | sort | uniq > 1.txt  usleep 100000  ps ax -o command | sort | uniq > 2.txt  diff  1.txt 2.txt | grep '^\+[^\+]' | while read a  do   a=`echo ${a#*+}`   if [[ "$a" != "uniq" ]] && [[ "$a" != "sort" ]] && [[ "$a" != "" ]]   then    echo $a   fi  done done
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部