X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Thu, 23 Feb 2012 13:33:55 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: how to hide the console window. Message-ID: <20120223123355.GM7657@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 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