4,552,546 th visitor since 2017.2.1 ( Today : 319 )
Computer ???
No. 214
Name. swindler
Subject. shell programming 예제
Main Cate. Linux
Sub Cate.
Date. 2007-01-04 11:17
Hit. 3571 (211.36.27.8)
File.
while true ; do

count=`ps aux | wc -l`

echo $count

if [ $count > 200 ]
then
ps ax >> ps.txt
fi

sleep 1
done


회사 서버를 모니터링 하기 위해서 간략하게 만든....
그나저나 ps 에서 넘길때 짤리는건 해결책을 잘 모르겠군.

[바로가기 링크] : http://coolx.net/cboard/computer/214



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog