• u/lukmly013 💾 (lemmy.sdf.org)
    link
    English
    1110 months ago

    the script stopped running when the SSH session ended

    tmux
    Always use tmux when possible for remote connections.

      • u/lukmly013 💾 (lemmy.sdf.org)
        link
        English
        10
        edit-2
        10 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
        link
        fedilink
        310 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.