715
Firewall (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] user224@lemmy.sdf.org 11 points 7 months ago

the script stopped running when the SSH session ended

tmux
Always use tmux when possible for remote connections.

[-] QuazarOmega@lemy.lol 2 points 7 months ago

What does it do in this case?

[-] user224@lemmy.sdf.org 10 points 7 months ago* (last edited 7 months ago)

Well, the script could keep running even after he would have detached from that tmux session due to losing ssh connection. And since that script would unblock all ports after 30 seconds...

(Same use case as nohup that they mentioned)

[-] JasonDJ@lemmy.zip 3 points 7 months ago

Tmux essentially creates a pseudo-shell that persists between sessions.

So you can start a process, detach the session, start something else, disconnect, come back next week, and check on it.

It does other things too. Like console tiling.

this post was submitted on 16 Feb 2024
715 points (97.6% liked)

Programmer Humor

32050 readers
1776 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS