netgroup / rose-vm

basic components of the rose-srv6 VM
https://netgroup.github.io/rose/
1 stars 1 forks source link

Redirect log of update script to both file and terminal #35

Open cscarpitta opened 3 years ago

cscarpitta commented 3 years ago

redirect log of update script to both file and terminal

current update script is /home/rose/workspace/rose-vm/scripts/update_all.sh clone_repos

it only display the output on the terminal it would be better to display on the terminal and to save it into a log file in /tmp folder

at the end of the execution instead of: Press enter to exit we should have: The log is available in /tmp/update.log Press enter to exit