Welcome to LQ tpolim.
Put your commands in script.sh and if your script works fine , give execute permission to the script and run it like this:
Code:
chmod +x script.sh
nohup bash script.sh > /home/tpolim001/script_logs/logoutput.txt 2>&1
It will run your script in nohup mode as well redirect your logs to a logfile in your home directory.