rem ###########################################################################
rem CHECK PID
rem ###########################################################################
set PIDPATH= %SF1_HOME%\pid\bridge-%3.pid
findstr [0-9] %PIDPATH%
if errorlevel == 3 goto NOPID
if errorlevel == 2 goto NOPID
if errorlevel == 1 goto NOPID
echo "bridge %3 is working"
goto done
:NOPID
echo "no pid check goto nextstep" %errorlevel%
:nextstep
rem CHECK PID
rem ###########################################################################
set PIDPATH= %SF1_HOME%\pid\bridge-%3.pid
findstr [0-9] %PIDPATH%
if errorlevel == 3 goto NOPID
if errorlevel == 2 goto NOPID
if errorlevel == 1 goto NOPID
echo "bridge %3 is working"
goto done
:NOPID
echo "no pid check goto nextstep" %errorlevel%
:nextstep
'IT 세상' 카테고리의 다른 글
window batch 파일 만들기 (0) | 2009.12.10 |
---|---|
windows batch help docs.. (0) | 2009.12.10 |
window 배치파일 만들기 모든 정보 (0) | 2009.12.09 |
window batch find (0) | 2009.12.09 |
EUC-KR로 표현할 수 없는 한글 처리 (0) | 2009.12.09 |