#!/bin/bash LOG_FILE="test_log.log" touch $LOG_FILE # output to console and to logfile exec > >(tee $LOG_FILE) 2>&1 echo "Starting command ls" ls -al echo ...
確定! 回上一頁