What would be the best method of using nohup in a batch script with multiple calls inside the script.
For example, I have a script called filebuilder.sh and it contains something like:
/usr/bin/python buildFile.py fileA /usr/bin/python buildFile.py fileB /usr/bin/python buildFile.py fileC
What I want to do is make ensure that if I run my script, it will continue even if my SSH session is terminated. Should I just call the script like so:
or place nohup before every entry in the file such as:
nohup /usr/bin/python buildFile.py fileA nohup /usr/bin/python buildFile.py fileB nohup /usr/bin/python buildFile.py fileC
or Both? If I place it only on the script, is it possible that one of the python calls could still fail on a termination signal? What is the best practice and which solution will accomplish my requirements? Is there a better alternative?