public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: how to hide the console window.
Date: Thu, 23 Feb 2012 12:34:00 -0000	[thread overview]
Message-ID: <20120223123355.GM7657@calimero.vinschen.de> (raw)
In-Reply-To: <CAGto_sGsWUK85skhqRkkgVwfwotVWPycw7B-oNM+r7nE+==RbQ@mail.gmail.com>

On Feb 23 19:07, tianlijian wrote:
> how to hide the console window.
> 
> the bat code is:
> 
> @echo off
> 
> 
> 
> REM batch file directory
> set BATCH_FILE_DIR=%~dp0
> 
> set PATH=/usr/sbin;/bin;/usr/bin;%PATH%
> REM "%BATCH_FILE_DIR%bin\bash.exe" -c "/usr/sbin/sshd"
> start "sshd by wei" "%BATCH_FILE_DIR%bin\bash.exe" -c "/usr/sbin/sshd &"

Why don't you start sshd as a service instead?  That's what the
/bin/ssh-host-config script is for.

Otherwise, /bin/run is your friend.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2012-02-23 12:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-23 11:07 tianlijian
2012-02-23 12:34 ` Corinna Vinschen [this message]
2012-02-23 16:01 ` tianlijian
2012-02-23 23:20 ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120223123355.GM7657@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).