treechicken@lemmy.world to Programmer Humor@lemmy.ml · 10 months agoFirewalllemmy.worldimagemessage-square75fedilinkarrow-up1732arrow-down118
arrow-up1714arrow-down1imageFirewalllemmy.worldtreechicken@lemmy.world to Programmer Humor@lemmy.ml · 10 months agomessage-square75fedilink
minus-squareu/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.orglinkfedilinkEnglisharrow-up11·10 months ago the script stopped running when the SSH session ended tmux Always use tmux when possible for remote connections.
minus-squareu/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.orglinkfedilinkEnglisharrow-up10·edit-210 months agoWell, 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)
minus-squareJasonDJ@lemmy.ziplinkfedilinkarrow-up3·10 months agoTmux 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.
tmux
Always use tmux when possible for remote connections.
What does it do in this case?
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)
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.