To ensure that the command continues to execute even after the SSH session is closed, you can use the nohup command or the screen/tmux utilities.
Using nohup
nohup bash <(wget -qO- check.unlock.media) &
The nohup command runs another command in the background and ignores the hangup signal, ensuring it continues running after the SSH session is closed. The & at the end puts the process in the background.
Using screen or tmux
You can also use screen or tmux to create a persistent terminal session:
- Start a screen or tmux session:
screen
or
tmux
- Run your command:
bash <(wget -qO- check.unlock.media)
- Detach from the session: For
screen, pressCtrl-athend. Fortmux, pressCtrl-bthend.
The command will continue to run in the background, and you can log out of the SSH session. You can later reattach to the session using screen -r or tmux attach.