Conversation
Notices
-
Embed this notice
Christmas Sun (sun@shitposter.world)'s status on Thursday, 12-Dec-2024 00:18:52 JST Christmas Sun tfw you start a script in a shell but not in tmux and you realize how long it's gonna take - snacks likes this.
-
Embed this notice
Matt Hamilton (eriner@noauthority.social)'s status on Thursday, 12-Dec-2024 00:23:13 JST Matt Hamilton @sun reptyr: https://xai.sh/2020/10/16/Move-running-process-into-tmux-session.html
Christmas Sun likes this. -
Embed this notice
Christmas Sun (sun@shitposter.world)'s status on Thursday, 12-Dec-2024 00:32:40 JST Christmas Sun @eriner this is scary but there's no downside to trying, the process could be restarted. In conversation permalink -
Embed this notice
billiam :4chan: (billiam@shitposter.world)'s status on Thursday, 12-Dec-2024 00:53:07 JST billiam :4chan: @sun this won't work?
>If a process is already in execution, such as the tar command example below, simply press Ctrl+Z to stop it then enter the command bg to continue with its execution in the background as a job.
https://www.tecmint.com/run-linux-command-in-background/In conversation permalink Attachments
-
Embed this notice
Christmas Sun (sun@shitposter.world)'s status on Thursday, 12-Dec-2024 00:53:07 JST Christmas Sun @billiam yeah that might be good enough In conversation permalink -
Embed this notice
Christmas Sun (sun@shitposter.world)'s status on Sunday, 15-Dec-2024 07:19:18 JST Christmas Sun @anemone @r000t yes In conversation permalink -
Embed this notice
BSD/r000t (r000t@ligma.pro)'s status on Sunday, 15-Dec-2024 07:19:19 JST BSD/r000t @sun ctrl+z, then run ‘bg’
In conversation permalink -
Embed this notice
anemone@ebiverse.social's status on Sunday, 15-Dec-2024 07:19:19 JST anemone @r000t@ligma.pro @sun@shitposter.world it's still owned by the shell so will stop if you close/disconnect though wont it?
In conversation permalink -
Embed this notice
BSD/r000t (r000t@ligma.pro)'s status on Sunday, 15-Dec-2024 07:57:02 JST BSD/r000t In conversation permalink Attachments
Christmas Sun likes this. -
Embed this notice
mr64bit (mr64bit@p.mr64.net)'s status on Sunday, 15-Dec-2024 07:57:03 JST mr64bit @r000t @anemone @sun I believe it still receives a SIGHUP, some things may quit in response. You can still `disown` the job to prevent that though. In conversation permalink -
Embed this notice
BSD/r000t (r000t@ligma.pro)'s status on Sunday, 15-Dec-2024 07:57:04 JST BSD/r000t @anemone @sun The orphaned process will become owned by init. Same as if you ran &
You could test it. Run a loop that increments a counter and appends it to a file. Suspend the shell, background the process, reconnect and `tail -f` the file. Then find and kill the process you started.
In conversation permalink