I have a server process running in a gnome-terminal at home. I am at work, and I want to detach the process from that terminal and move it to screen without restarting it. Also, I can't use VNC.

Is there a way to do this?

asked 18 Sep '10, 00:22

Joehillen's gravatar image

accept rate: 40%

edited 18 Sep '10, 00:35

About detaching part:

stop process (Ctrl+Z)

move it to the background (bg)

detach it from bash(disown)

Move it to screen? Hmm... interesting question :-). I am not aware of easy way to do it. There is an option of attaching to the running process with gdb -> redirecting stderr & stdout Maybe it can be accomplished with following steps:

1) open screen

2) find out what is screen output pseudo terminal

3) attach to your process with gdb

4) redirect your process standard output to screen pseudo terminal (using magic in link above, I mean dup2 system call and friends)


answered 18 Sep '10, 13:04

maszynista's gravatar image

accept rate: 33%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 18 Sep '10, 00:22

Seen: 2,679 times

Last updated: 18 Sep '10, 13:04

powered by OSQA