fix as.sh batch mode support. close #363

pull/378/head
hengyunabc 6 years ago
parent 24024d4d38
commit 317241eb6d

@ -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

Loading…
Cancel
Save