FG
💻 Software

How to keep remote script running when dropping ssh?

Fresh5 days ago
Mar 15, 20262020 views
Confidence Score0%
0%

Problem

I 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?

Error Output

ssh

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to keep remote script running when dropping ssh?

Low Risk

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

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment