diff --git a/netpfga/do-all-steps.sh b/netpfga/do-all-steps.sh index 6f6448a..b3268c8 100755 --- a/netpfga/do-all-steps.sh +++ b/netpfga/do-all-steps.sh @@ -7,8 +7,8 @@ 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 2>&1 + +( # Step 1..3: create code # Step 4: @@ -72,3 +72,5 @@ cd $NF_DESIGN_DIR/bitfiles/ # some scripts are, some scripts aren't executable... chmod u+x $(pwd -P)/program_switch.sh sudo bash -c ". $HOME/master-thesis/netpfga/bashinit && $(pwd -P)/program_switch.sh" + +) 2>&1 | tee "$LOG"