Try exec | tee

This commit is contained in:
Nico Schottelius 2019-07-23 10:22:11 +02:00
parent 1059e8d0e0
commit fb37c96a3b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ echo "First source all variables and THEN run this script"
read something
LOG=~/master-thesis/netpfga/log/compile-$(date +%F-%H%M%S)
exec > "$LOG"
exec | tee "$LOG"
exec 2>&1
# Step 1..3: create code