DEV Community

Ilhan Ates
Ilhan Ates

Posted on • Originally published at ilhan.me

Move an already running process to screen

You've realized some command you ran on your remote server is taking long, and want to move it to a Screen session. Tough situation, easy solution!

  1. Use top or htop to grab the PID of the process.
  2. Open screen in another ssh session / terminal tab.
  3. Use reptyr (reptyr PID) to attach it back!

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay