X-Spam-Check-By: sourceware.org Date: Tue, 14 Aug 2007 11:34:38 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Rob Siklos cc: cygwin AT cygwin DOT com Subject: Re: running a GUI app as a service with cygrunsrv In-Reply-To: <001f01c7de86$39414030$6901a8c0@Clarifica.local> Message-ID: References: <001f01c7de86$39414030$6901a8c0 AT Clarifica DOT local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, 14 Aug 2007, Rob Siklos wrote: > Hi, > > I've searched google, but couldn't readily find an answer to this. > > What happens if I have a GUI application that I install as a service > (and set the startup type to Auto) with cygrunsrv. Is this supported? > > I'm hoping that the window info will just be thrown away, but the app > will still run fine. Unlikely. The app probably expects to be able to at least pop up a window... > My problem is that I am trying to automate a connection to a VPN using > the Cisco VPN Client. The client which I must use is a GUI application, > but if the system reboots for some reason, I want the client to start > even if nobody is there to log in. I think you want the --interactive/-i flag to cygrunsrv. Note that this requires you to run the service as SYSTEM, and, I believe, is no longer supported on Win2k3 and Vista... HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Belief can be manipulated. Only knowledge is dangerous. -- Frank Herbert -- 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/