Preloader image
DDD

리눅스

C shell Loop 사용법

작성자 관리자 (admin)
조회수 202
입력일 2021-11-04 00:54:36

C Shell 로 3초 마다 프로세스 중 tomcat 출력하는 쉘
csh 안되는 서버/호스팅 존재

# csh

# while 1
ps aux | grep tomcat
ls -alF | wc -l
echo "-------------------"

sleep 3
end

--- result ---

217473        Sl    21:27 /usr/local/jdk8/bin/java -Djava.util.logging.config.file=/home/hosting_users/khan666/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxMetaspaceSize=128m -Xmx128m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Djava.endorsed.dirs=/home/hosting_users/khan666/tomcat/endorsed -classpath /home/hosting_users/khan666/tomcat/bin/bootstrap.jar:/home/hosting_users/khan666/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/home/hosting_users/khan666/tomcat -Dcatalina.home=/home/hosting_users/khan666/tomcat -Djava.io.tmpdir=/home/hosting_users/khan666/tomcat/temp org.apache.catalina.startup.Bootstrap start
20
-------------------
'217473 ?        Sl    21:27 /usr/local/jdk8/bin/java -Djava.util.logging.config.file=/home/hosting_users/khan666/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XX:MaxMetaspaceSize=128m -Xmx128m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Djava.endorsed.dirs=/home/hosting_users/khan666/tomcat/endorsed -classpath /home/hosting_users/khan666/tomcat/bin/bootstrap.jar:/home/hosting_users/khan666/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/home/hosting_users/khan666/tomcat -Dcatalina.home=/home/hosting_users/khan666/tomcat -Djava.io.tmpdir=/home/hosting_users/khan666/tomcat/temp org.apache.catalina.startup.Bootstrap start
20
-------------------

.

.

.

^