[SOLVED] X-server crashed. Is my session still alive?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running a huge task on a Linux server (CentOS), and the interface is displayed locally on a Windows desktop using X-Win32, which crashes after one and half day. Does this mean my task on the server is dead too? Or the server should be able to finish the task and then kill himself?
Is there anyway to detach the session from my desktop machine and just let it run on the server? For now, I have to keep my Windows Desktop running all the time just to keep the session alive.
To determine whether the process is still running on the server you'd have to login and run "ps -ef" and look through the running processes (or grep for more specific information if you know it). Sometimes if a session gets detached from a workstation it is still alive on the server but you have no way of reconnecting (unless you set it up for that beforehand).
There ARE utilities that let you run things from one session and detach then reattach again from same workstation or even another workstation.
If what you opened was a terminal window in X so that you could run a command from command line you should use the "screen" utility. You can see a discussion of screen here: http://en.wikipedia.org/wiki/GNU_Screen
If you install vncserver and xrdp, you can connect to your server through Windows Remote Desktop Console (mstsc.exe). This allows you to disconnect and then re-connect from anywhere to pick your session back up again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.