This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to hide the console window.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]