I have a bash-script
python task1.py && python task2.py
they are both pretty memory heavy and it seems liek the memory hangs after task1.py
is done i.e it keeps rising.
It is scheduled to run via. windows task manager if that has any influence.
Does windows create two python instances (one after the other is finished) and closes them when the script is done, or is it more like "open-close-open-close" ?
The Bash concatenation, launch the second command after the first one return, so the logic is "open-close open-close".
When you
task.py
ends the python interpreter is closed and then reopened to execute thetask2.py
.