Try exec | tee

This commit is contained in:
Nico Schottelius 2019-07-23 10:22:11 +02:00
parent 1059e8d0e0
commit fb37c96a3b

View file

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