Skip to content

Instantly share code, notes, and snippets.

@natersoz
Last active February 27, 2019 16:52
Show Gist options
  • Save natersoz/cd6ae8413f95dc9b554e554ed11a601f to your computer and use it in GitHub Desktop.
Save natersoz/cd6ae8413f95dc9b554e554ed11a601f to your computer and use it in GitHub Desktop.

reptyr: Resume running processes in screen or tmux

You have started a process and want to control it using tmux. This will require reptyr to be installed on your system.

Background the process with keypress CTRL-Z
$ bg                   # resume the process in the background
$ jobs -l              # display running background jobs
$ disown <job-no>      # disown your running job(s)

At this point you can walk away and re-attach later:
$ tmux                 # start tmux up
$ reptyr <job-no>      # control process id <job-no> using tmux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment