if "%STARTUP_PORT%" == "" SET STARTUP_PORT=8080
if "%SHUTDOWN_PORT%" == "" SET SHUTDOWN_PORT=8005
if "%SHUTDOWN_PORT%" == "" SET SHUTDOWN_PORT=8005
유닉스 혹은 리눅스(sh)에서는 다음과 같이 변수 설정 여부를 확인한다.
STARTUP_PORT="${STARTUP_PORT}"
SHUTDOWN_PORT="${SHUTDOWN_PORT}"
if [ "${STARTUP_PORT}" = "" ]
then
STARTUP_PORT="8080"
fi
if [ "${SHUTDOWN_PORT}" = "" ]
then
SHUTDOWN_PORT="8005"
fi
SHUTDOWN_PORT="${SHUTDOWN_PORT}"
if [ "${STARTUP_PORT}" = "" ]
then
STARTUP_PORT="8080"
fi
if [ "${SHUTDOWN_PORT}" = "" ]
then
SHUTDOWN_PORT="8005"
fi
No comments:
Post a Comment