I was running a script that takes ages in Terminal.
I wanted to run it unsupervised while I was working away from my MacBook, so I chose from the menu (top right) username > Login Window..., which is NOT logout, but the lock screen.
I was expecting the script to run. When I returned hours later and unlocked the screen (by typing in my password), I had to find out that while the screen was locked the script was paused all the time, and just continued where it set off when I unlocked the screen.
The expected behaviour (known from other UNIX derivatives) would have been to run while the UI was locked and secure.
How can I achieve this?