News for hackers. Stuff that matters.
Re:How to move a running process into a tmux session (2020) by jcynix on Wednesday October 05, 2022 @06:56AM (#33093770)
The streamlined version is what "screen -d …" does, so it's some kind of standard feature, isnt it?. The only "drawback" I see is that you have to plan ahead to use screen.

When I start long running jobs, I try do start them that way, so I can check on them (and their output in a screen logfile) from anywhere:

screen -L -Logfile "batch-xyzzy-221005a" -S "xyzzy1" bash job.sh

Now I can just check the log with grep or less, or reattach to it if some action is needed.

Re:How to move a running process into a tmux session (2020) by kennu on Wednesday October 05, 2022 @07:27AM (#33093979)
I also use tmux beforehand, when I plan ahead. But I think this discussion is about those situations where you didn't plan ahead and still need to somehow keep a process running.