diff --git a/bin/start_backend.sh b/bin/start_backend.sh index d06e7bed055700..3a781b36c859e7 100755 --- a/bin/start_backend.sh +++ b/bin/start_backend.sh @@ -224,7 +224,7 @@ if [ ${RUN_LOG_CONSOLE} -eq 1 ] ; then export GLOG_logtostderr=1 else # redirect stdout/stderr to ${LOG_FILE} - exec &>> ${LOG_FILE} + exec >> ${LOG_FILE} 2>&1 fi echo "start time: $(date), server uptime: $(uptime)" diff --git a/bin/start_fe.sh b/bin/start_fe.sh index bd3d6557a4a291..7271dd14966a89 100755 --- a/bin/start_fe.sh +++ b/bin/start_fe.sh @@ -235,7 +235,7 @@ if [ ${RUN_LOG_CONSOLE} -eq 1 ] ; then echo -e "\nsys_log_to_console = true" >> $STARROCKS_HOME/conf/fe.conf else # redirect all subsequent commands' stdout/stderr into $LOG_FILE - exec &>> $LOG_FILE + exec >> $LOG_FILE 2>&1 fi echo "using java version $JAVA_VERSION"