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

Programmer Humor

31800 readers
488 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 6 months ago (2 children)

Out of curiousity, how would nohup make your situation different? As I understand, nohup makes it possible to keep terminal applications running even when the terminal session has ended.

[–] [email protected] 7 points 6 months ago (1 children)

If the script was supposed to wait 30 secs and then unblock the ports, running with nohup would have allowed the ports to be unblocked 30 secs later. Instead, the script terminated when the SSH session died, and never executed the countdown nor unblock.

[–] [email protected] 4 points 6 months ago (1 children)

Thanks for the elaborate answer!

[–] [email protected] 3 points 6 months ago
[–] [email protected] 5 points 6 months ago

the script stopped running when the SSH session ended so never unblocked the ports