Skip to content

Commit

Permalink
fix as.sh batch mode support. close alibaba#363
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Dec 13, 2018
1 parent 24024d4 commit 317241e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/as.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 317241e

Please sign in to comment.