摘要:
看下面的Bash脚本: #!/bin/bash interval=0 count=0 pid="" while getopts "p:d:n" arg do case $arg in p) pid=$OPTARG echo "pid: $pid" ;; d) interval=$OPTARG ech 阅读全文
posted @ 2014-11-18 17:15
hongweigg
阅读(6)
评论(0)
推荐(0)
摘要:
对一个Linux进程进行监控,使用Bash脚本实现。 使用ps命令对进程进行监控,使用循环加睡眠时间实现连续监控。 用法: psmonitor.sh -p [pid] -d [interval] -n [statistics count] 参数: -p 监控的进程ID -d 读性能数据间隔 -n 统 阅读全文
posted @ 2014-11-18 17:11
hongweigg
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号