this post was submitted on 23 Oct 2026
23 points (96.0% liked)

Linux

15321 readers
250 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
 

Is such a think possible under Linux?

Yeah I know I can tmux / nohup, and I know that if I dig deep enough I can manually reattach some of the file descriptors under /proc to get a working terminal for that process again....

... but is there a tool that automatically does this somehow?

e.g.

run -d ./bash long-running.sh  >  proc.file
### later
run -a  proc.file

Edit: Y'all really know how to recreate the feeling of StackOverflow circa 2018

you are viewing a single comment's thread
view the rest of the comments
[–] solrize@lemmy.ml 2 points 6 days ago (1 children)

Not sure what you want. You're trying to monitor that process so you can tell when it finishes? You want to know when the file is closed? You can do that with inotify(2).

[–] tetris11@feddit.uk 3 points 6 days ago (2 children)

I essentially want tmux, without the hassle of needing a tmux server running in the background.

I want the convenience of nohup, with the ability to attach to the nohup file of a running process and recover the running session.

[–] CallMeAl@piefed.zip 2 points 5 days ago

hassle of needing a tmux server running

What do you mean? What hassle??

[–] solrize@lemmy.ml 2 points 6 days ago

I use "screen" which i guess is similar to tmux, if that's of any help.