要求:
大概的流程:
细节: 以上细节,考虑的不是很完备,有兴趣的朋友,可以研究下。
一段简单的shell脚本:
#!/bin/sh
echo "Begin to exec monitoring work....." while [ true ] do echo "this period is ok...." sleep 5 #ps -ef | grep CTX #temp = ps -ef temp=`ps -a` #var1=`pwd` #echo "pwd: $var1" echo $temp done (责任编辑:IT) |