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

  • tetris11@feddit.ukOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    the use-case is to simply re-attach to a long-running process, I’m not too concerned about a session persisting across reboots, though that would clearly be amazing

    • pmtriste@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      Screen should work with no problem. You just start the screen session, detatch when you want, reattach later. No problem.