X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <31b7d2790801302153w9f3e696g68621423f38780e7@mail.gmail.com> Date: Wed, 30 Jan 2008 23:53:30 -0600 From: "DePriest, Jason R." To: cygwin AT cygwin DOT com Subject: Re: Running Cygwin in background. In-Reply-To: <15198503.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <15181008 DOT post AT talk DOT nabble DOT com> <4a89b8680801300509u41f96dbak15282443d78f6740 AT mail DOT gmail DOT com> <15195201 DOT post AT talk DOT nabble DOT com> <47A11F26 DOT 4000703 AT cygwin DOT com> <15198503 DOT post AT talk DOT nabble DOT com> X-IsSubscribed: yes 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 Jan 30, 2008 11:35 PM, jrtayloriv wrote: > > Sorry, I am not used to Windows at all -- I've only been using Linux for the > past several years and I've forgotten about a lot of things. > > Because of this, it seems that I am having trouble asking the right > question... > > I am talking about how to get Cygwin itself to run in the background. Once I > start up the Cygwin shell, I am able to run SSH as a background service > within Cygwin. But when I close the Cygwin shell, I loose the SSH server > running within it. > > What I need is information on how to run ***CYGWIN*** as a background > service, so that there is no Cygwin window open, but the services that are > running in Cygwin (in this case sshd) are still there. Do I even need to run > Cygwin for this? Can I just run cygwin's sshd from windows? CYGWIN is not a program to be run. You can just run sshd as a service and get what you want. If you ssh to your Cygwin sshd system, you can run a bash shell or whatever shell you want. CYGWIN isn't something you run, it's just a dll that does fancy translation of win32 calls to unixy calls and vice versa so recompiled unixy programs can work properly on a Windows system. That is probably oversimplifying it and I'm sure fifteen other people could point out how what I said is incorrect or misleading, but it should explain it well enough. > > I do know what the 'Run' menu is in Windows. I also found information about > Cygserver in the online documentation -- is this what I need? Are you trying > to tell me to use the Run menu with 'cygrunsrv.exe' ? Or are you telling me > to run sshd from 'Run' menu? > Cygserver and cygrunsrv.exe are two different things. You do not need Cygserver. If you run ssh-host-config it will create an sshd service using cygrunsrv.exe for you. Then you can just start it just like any other windows service. > Once again, I'm really not at home in Windows, so let me know if I'm missing > something. If I am not understanding something could you at least point me > in the right direction for what I need to look up? > > Thanks, > jrtayloriv > -- -- 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/