Move a running process to a screen session

Suspend the process


Resume the process in background

# bg

Disown it

# disown %1

If you have multiple jobs running, find the correct job number:

# jobs -l

Enter screen session

# screen

Find the PID of the process

# pgrep processname

Attach it to current screen session

# reptyr PID

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.