ssh from my MacBook to a remote Linux and started a lengthy script (import 2000000+ lines of csv text records into MySQL). Too bad I have to take away my MacBook one hour later.
How can I keep the script running when I unplug my MacBook?
Use nohup and run your process in the background. Run your process like this:
nohup is fine, but spartian. screen is powerful. Let's do:
type Control-A, then d. This will detach the screen session. You'll see the detached session with:
To reattach a session:
See also this screen presentation