I have a PHP script running which is taking hours, and I have to close my computer. I ran the script using php script.php
.
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 screen
or 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.
screen
ortmux
. You can disconnect and reconnect as many times as you like and in the meantime, your PHP application will continue to run while still being connected to a terminal. – xhienne Mar 28 '17 at 16:52