delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/31/00:54:25

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." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Running Cygwin in background.
In-Reply-To: <15198503.post@talk.nabble.com>
MIME-Version: 1.0
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
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019