From ddf8ff230a4a2f0bc86e9f90600c13256a890946 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 23 Jul 2019 12:30:47 +0200 Subject: [PATCH] add tee to do-all-steps --- netpfga/do-all-steps.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"