LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-26-2006, 09:01 PM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
Cygwin X logout, keep programs running


Hello guys:

I'm using cygwin as a Windows Remote Desktop replacement to access muy RedHat box. It works fine, however, when I end the CygwinX on my XP box, the programs running on the RedHat stop working. I'd like them to keep working, for example, I log using X (on my win machine) start a server,logout and the service is still running, much as with Windows Remote Desktop. Is that possible? how can I do this? This is so that when I login again (from any other computer) the programs I was using are still there.... the rH box is always on!

Thanks

alejandro
 
Old 02-26-2006, 09:52 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The problem is that when you disconnect ( hang up ), a NOHUP signal is sent to the shell and any subprograms. You can use the program "nohup" which is short for "No Hangup". I don't know how you would do that if you are talking about a graphical program, because the x-server sends the graphics to the :10.0 ssh tunnel instead of :0.0 as is normal. With nohup, you can redirect stdio output to a log file, but I don't know what would happen if you started a GUI program.

If you want to reconnect latter, look into the screen program.

Last edited by jschiwal; 02-26-2006 at 09:59 PM.
 
Old 02-27-2006, 01:12 AM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
You should also look into VNC, which is like remote desktop and allows disconnection and reconnection of sessions.
 
Old 03-31-2006, 02:52 PM   #4
JakeX
Member
 
Registered: Aug 2004
Location: Windsor Ontario
Distribution: Ubuntu, Debian, Redhat
Posts: 44

Rep: Reputation: 15
Cool

Quote:
Originally Posted by spooon
You should also look into VNC, which is like remote desktop and allows disconnection and reconnection of sessions.
Ya RealVNC kicks butt
I've replaced Remote Desktop Connection on WindowzzzXP/Server boxes, simply because win RDC treats you as a 'remote connection' rather than a normal user. I've found problems with that associated when admining my HTPC box where in some instances, it fails to output to TV, and no monitor is hooked up etc. Or some apps don't run properly while connected remotely. VNC'ing into the machine lets me have full video options, rather than a limited bunch while running over RDC.


Last edited by JakeX; 03-31-2006 at 02:54 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: running process in bg and logout and persist... woes :S kevingpo Fedora 1 09-09-2005 01:10 AM
Keep task running after logout Xzanron Linux - General 3 12-14-2004 02:44 PM
help running x11 applications from cygwin/x on a LAN combrains Linux - Networking 5 11-08-2004 07:07 PM
Cygwin Xlib Issues for the Running Man BenRichards Linux - Software 0 09-07-2004 09:37 AM
Keeping a process running after shell logout abboq Linux - Software 5 09-01-2004 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration