Reputation: 17829
So I have a script that I would like to run on my server and not have it bother me. So I thought I would run the server in a tmux window and then detach
it so I could simply attach
if I ever want to look at the progress (this script will take days to run).
but when I run my script in the tmux window, I am not able to detatch
while it is running. Is there something I am doing wrong? How can I detach while this still runs? I feel like I am being very oblivious to an obvious solution here.
Upvotes: 11
Views: 7867
Reputation: 1440
You can detach from a tmux
session while leaving the script running by:
CTRL
+ b
, then pressing d
You can enter back into the session by running tmux attach -t <session id>
Upvotes: 3