Re: Can I launch a graphical windows app from within a cygwin ssh session
[EMAIL PROTECTED] on Wednesday, November 03, 2004 at 1:04 PM -0800 wrote: > "cygstart progname" from your ssh >session. Works like a charm. Thanks much. Mark Stuhr Director of Inf. Tech. Nolo [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
On Tue, 2 Nov 2004, Mark Stuhr wrote: > Subject line says it, but let me describe further . > > I'm hoping to set cygwin with ssh up on servers so that I can remotely > manage those servers when not able to get in via terminal services or > other graphical remote control app. > > What I want to be able to do from within that ssh session includes but is > not limited to > > kill a process > net stop or start a service > restart the machine > (I'm pretty comfortable doing all of the above) > launch a windows app that should run on that remote (or host, can never > keep that syntax straight) box. (In other words a server runs an app most > of the time, but not as a service. That app needs restarting for whatever > reason and I'm on the road. I can dial in with my pocketpc and get an ssh > session going to that server, at that point I'd want to kill that app, > easy, then I need to restart that app so it will stay running on that > server even after I disconnect my ssh session. > > How do I do that??? > > PS I have googled and searched mailing list and read FAQs and > documentation and tried various tests that I can think of and have seen > nothing on this, so apologies in advance if I'm missing the obvious. If all you want is to make sure the app is running on the machine (i.e., you don't actually need to see the screens on your pocketpc), install the sshd service using the "-i" cygrunsrv flag (which *will* open an extra console window for sshd, but that can't be helped), and then you should be able to use "setsid progname" or even "cygstart progname" from your ssh session. Please let this list know if this works, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
DePriest, Jason R. schrieb: On Tuesday, November 02, 2004 4:12 PM, Mark Stuhr wrote [--cut some stuff--] launch a windows app that should run on that remote (or host, can never keep that syntax straight) box. (In other words a server runs an app most of the time, but not as a service. That app needs restarting for whatever reason and I'm on the road. I can dial in with my pocketpc and get an ssh session going to that server, at that point I'd want to kill that app, easy, then I need to restart that app so it will stay running on that server even after I disconnect my ssh session. [--cut some stuff--] How do I do that??? I am not in a position to test it out right now. But what happens if you have the Cygwin SSH service on the remote system set to interact with the local desktop? Cygrunsrv has a commandline switch --interactive to set this when you install the service, but you can also change it by looking at the service properties through the Windows services applet. Indeed, --interactive is the correct answer. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Can I launch a graphical windows app from within a cygwin ssh session
On Tue, 2 Nov 2004, DePriest, Jason R. wrote: On Tuesday, November 02, 2004 4:12 PM, Mark Stuhr wrote [--cut some stuff--] launch a windows app that should run on that remote (or host, can never keep that syntax straight) box. (In other words a server runs an app most of the time, but not as a service. That app needs restarting for whatever reason and I'm on the road. I can dial in with my pocketpc and get an ssh session going to that server, at that point I'd want to kill that app, easy, then I need to restart that app so it will stay running on that server even after I disconnect my ssh session. [--cut some stuff--] How do I do that??? I am not in a position to test it out right now. But what happens if you have the Cygwin SSH service on the remote system set to interact with the local desktop? Cygrunsrv has a commandline switch --interactive to set this when you install the service, but you can also change it by looking at the service properties through the Windows services applet. Been a year or so since i tried it but that certainly used to work. -Jason PS - I apologize in advance for the legal disclaimer at the bottom of my email message. This is tacked on by our SMTP gateway and I have no control over it. -- -- Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. == -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
"DePriest, Jason R." <[EMAIL PROTECTED]> on Tuesday, November 02, 2004 at 4:08 PM -0800 wrote: >PocketPC might be running from a mobile phone or something. VNC is >possible, but not optimized for the tiny display. I've tried SSH client >+ VNC Viewer on my Zaurus SD-5500 (Sharp mobile Linux device) and >quickly decided I'd rather not do it again. Exactly. Mark Stuhr Director of Inf. Tech. Nolo [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Can I launch a graphical windows app from within a cygwin ssh session
On Tuesday, November 02, 2004 4:55 PM, Mark Stuhr wrote [--- cut ---] > "Gerrit P. Haase" <> on Tuesday, November 02, 2004 > at 3:38 PM -0800 wrote: [--- cut ---] >>> restarting for whatever reason and I'm on the road. I can dial in >>> with my pocketpc and get an ssh session going to that server, at >>> that point I'd want to kill that app, easy, then I need to restart >>> that app so it will stay running on that server even after I >>> disconnect my ssh session. >>> >>> How do I do that??? >> >> VNC through a tunnel? [--- cut ---] > > Mark Stuhr [--- cut ---] PocketPC might be running from a mobile phone or something. VNC is possible, but not optimized for the tiny display. I've tried SSH client + VNC Viewer on my Zaurus SD-5500 (Sharp mobile Linux device) and quickly decided I'd rather not do it again. -Jason PS - I apologize in advance for the legal disclaimer at the bottom of my email message. This is tacked on by our SMTP gateway and I have no control over it. -- -- Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. == -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
"Gerrit P. Haase" <[EMAIL PROTECTED]> on Tuesday, November 02, 2004 at 3:38 PM -0800 wrote: >> launch a windows app that should run on that remote (or host, can never >> keep that syntax straight) box. (In other words a server runs an app >most >> of the time, but not as a service. That app needs restarting for >whatever >> reason and I'm on the road. I can dial in with my pocketpc and get an >ssh >> session going to that server, at that point I'd want to kill that app, >> easy, then I need to restart that app so it will stay running on that >> server even after I disconnect my ssh session. >> >> How do I do that??? > >VNC through a tunnel? Yes, but really trying to find a solution that works when I can't or don't want to use a gui Remote control app. Thanks Mark Stuhr Director of Inf. Tech. Nolo [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
Mark Stuhr wrote: Subject line says it, but let me describe further . I'm hoping to set cygwin with ssh up on servers so that I can remotely manage those servers when not able to get in via terminal services or other graphical remote control app. What I want to be able to do from within that ssh session includes but is not limited to kill a process net stop or start a service restart the machine (I'm pretty comfortable doing all of the above) launch a windows app that should run on that remote (or host, can never keep that syntax straight) box. (In other words a server runs an app most of the time, but not as a service. That app needs restarting for whatever reason and I'm on the road. I can dial in with my pocketpc and get an ssh session going to that server, at that point I'd want to kill that app, easy, then I need to restart that app so it will stay running on that server even after I disconnect my ssh session. How do I do that??? VNC through a tunnel? PS I have googled and searched mailing list and read FAQs and documentation and tried various tests that I can think of and have seen nothing on this, so apologies in advance if I'm missing the obvious. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Can I launch a graphical windows app from within a cygwin ssh session
Jason, thanks for the quick answer, unfortunately creates more questions. "DePriest, Jason R." <[EMAIL PROTECTED]> on Tuesday, November 02, 2004 at 3:20 PM -0800 wrote: >On Tuesday, November 02, 2004 4:12 PM, Mark Stuhr wrote >[--cut some stuff--] >> launch a windows app that should run on that remote (or host, can >> never keep that syntax straight) box. (In other words a server runs >> an app most of the time, but not as a service. That app needs >> restarting for whatever reason and I'm on the road. I can dial in >> with my pocketpc and get an ssh session going to that server, at that >> point I'd want to kill that app, easy, then I need to restart that >> app so it will stay running on that server even after I disconnect my >> ssh session. >[--cut some stuff--] >> How do I do that??? > >I am not in a position to test it out right now. > >But what happens if you have the Cygwin SSH service on the remote system >set to interact with the local desktop? Cygrunsrv has a commandline >switch --interactive to set this when you install the service, but you >can also change it by looking at the service properties through the >Windows services applet. > That checkbox is only available when you are running as local system. In order to get the service to start reliably I had to switch the service to run as a particular user (chown wasn't working for some reason, couldn't change ownership of files necessary to get ssh service working, so changed service to run as owner of files (me.) So, if you think that running as local system with interact with desktop will work then I need to go back to the drawing board and get that working. Thanks Mark Stuhr Director of Inf. Tech. Nolo [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: Can I launch a graphical windows app from within a cygwin ssh session
On Tuesday, November 02, 2004 4:12 PM, Mark Stuhr wrote [--cut some stuff--] > launch a windows app that should run on that remote (or host, can > never keep that syntax straight) box. (In other words a server runs > an app most of the time, but not as a service. That app needs > restarting for whatever reason and I'm on the road. I can dial in > with my pocketpc and get an ssh session going to that server, at that > point I'd want to kill that app, easy, then I need to restart that > app so it will stay running on that server even after I disconnect my > ssh session. [--cut some stuff--] > How do I do that??? I am not in a position to test it out right now. But what happens if you have the Cygwin SSH service on the remote system set to interact with the local desktop? Cygrunsrv has a commandline switch --interactive to set this when you install the service, but you can also change it by looking at the service properties through the Windows services applet. -Jason PS - I apologize in advance for the legal disclaimer at the bottom of my email message. This is tacked on by our SMTP gateway and I have no control over it. -- -- Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. == -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Can I launch a graphical windows app from within a cygwin ssh session
Subject line says it, but let me describe further . I'm hoping to set cygwin with ssh up on servers so that I can remotely manage those servers when not able to get in via terminal services or other graphical remote control app. What I want to be able to do from within that ssh session includes but is not limited to kill a process net stop or start a service restart the machine (I'm pretty comfortable doing all of the above) launch a windows app that should run on that remote (or host, can never keep that syntax straight) box. (In other words a server runs an app most of the time, but not as a service. That app needs restarting for whatever reason and I'm on the road. I can dial in with my pocketpc and get an ssh session going to that server, at that point I'd want to kill that app, easy, then I need to restart that app so it will stay running on that server even after I disconnect my ssh session. How do I do that??? PS I have googled and searched mailing list and read FAQs and documentation and tried various tests that I can think of and have seen nothing on this, so apologies in advance if I'm missing the obvious. Thanks Mark Stuhr Director of Inf. Tech. Nolo [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/