就一行 sh -x /root/cross.sh 2>&1 | tee /root/cross.log ref : https://www.linuxquestions.org/questions/linux-general-1/redirecting-bash-script-stdout-stderr-from-the-script-itself-636297/
留言