Change display of running program.

I've managed to connect to my linux box from my PC using Cygwin. I want to be able to take over control of a runing program.
e.g. If I started xterm from the linux box, then logged in from my PC, how could I take control of that xterm session?

Also... how can I do this with normal console applications?

Preferrably looking for the simplest way of doing this, without having to install anything.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You have a couple of choices here:

If you want a GUI enviornment, you should use "VNC".  You just need to setup VNC so that it has a X11 window manager and all that.

If you want a console based environment, you should use "screen".  In this case, you would ssh into a machine and then use the proper screen arguments to "take over" an already established session running in screen.

Both of these do not require X11.  

VNC comes with it own X server.  Your session simply received screen refresh updates via the VNC client.
Oh -- neither of these satifies your requirement of "without having to install anything".  Your distro of Linux may already come with these installed - and it may not.

You should be able to find LOTS of screen tutorials on the net.
If you are root user you can suspend unwanted programs, that is "control".
You can dump program into core file and hijack with debuger from current state.
All is done without having to install anything, but is too complex for you.
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Basic answer is: "No, you cannot move a running program from one display to another". Moving between screens (a la xinerama) is another thing.

All that has been said above is true too;)

-- Glenn

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SaMuElAuthor Commented:
So there's no way to route the output of one program from one X server to the next,
or the standard output of one console program, to another terminal?

Damnit linux isn't anywhere near as computer scientist friendly as people claim, it's such a simple thing I want to do.
If you want to have something running under X11 at all times but want to "view" this X11 something from anywhere, you're right, *X11* can't handle this.  The operating system (Solaris, Linux, AIX, Windows, HPUX, MacOS, etc) you are running this X11 something on has *NOTHING* to with it.  Linux isn't your problem - its all about what X11 can and can not do.

From your discription really this sounds like VNC is perfect fit for what you are trying to do.  I qualify by saying I don't know what you are truely trying to accomplish or the specific problem you are trying to solve but VNC seems like a perfect candidate from this thread.
Oh and it actually a rather complex thing you want to do because of the stateful nature of the TCP connections in use, the X11 protocol itself, and so on.  Conceptually it may seem easy ... but it ain't.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.