1.查詢某個網段的機器指定的Port有沒有開




















2.查詢指定機器share出來的目錄,另外一個文件省略.

































done
3.如果OS上面有CPU利用率超過50%的進程,刪除之.
#!/usr/bin/ksh i=0 for x in `ps -efo pid,pcpu,comm | grep f45runw` do m=`expr $i % 3` case $m in 0) pid=$x ;; 1) pcpu=$x ;; 2) if [ $pcpu -ge 50 ] then kill -9 $pid fi ;; esac i=`expr $i + 1` done