From 317241eb6d1a37f7bc814479f70f04a58f0e8ea2 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Thu, 13 Dec 2018 17:09:17 +0800 Subject: [PATCH] fix as.sh batch mode support. close #363 --- bin/as.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/as.sh b/bin/as.sh index 7dc30ffe1..4d648f55f 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -720,14 +720,14 @@ active_console() "${JAVA_HOME}/bin/java" ${ARTHAS_OPTS} ${JVM_OPTS} \ -jar "${arthas_lib_dir}/arthas-client.jar" \ ${TARGET_IP} \ - -p ${TELNET_PORT} \ + ${TELNET_PORT} \ -c ${COMMAND} fi if [ "${BATCH_FILE}" ] ; then "${JAVA_HOME}/bin/java" ${ARTHAS_OPTS} ${JVM_OPTS} \ -jar "${arthas_lib_dir}/arthas-client.jar" \ ${TARGET_IP} \ - -p ${TELNET_PORT} \ + ${TELNET_PORT} \ -f ${BATCH_FILE} fi elif type telnet 2>&1 >> /dev/null; then