This question already has an answer here:
I have a PHP script running which is taking hours, and I have to close my computer. I ran the script using
Is there any way I can close this script while keeping it running? (It's running on a server)
I am connected to the remote DigitalOcean server via SSH on my Mac.
Note: What I'm trying to achieve is not killing the process, but continuing the process. I know I should have used
nohup, and that's my bad I didn't do it before.
Is the only solution not terminating the session by not closing my computer?
Ps.: Not a duplicate of the other question that someone link to. You can see that the correct answer to my question is different than the correct answer of the other question as well. Problem here is keeping a script that's running under my user running even though exiting the session.