* how to hide the console window.
@ 2012-02-23 11:07 tianlijian
2012-02-23 12:34 ` Corinna Vinschen
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tianlijian @ 2012-02-23 11:07 UTC (permalink / raw)
To: cygwin
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 &"
echo success...
REM ping -n 3 127.0.0.1 >NUL
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to hide the console window.
2012-02-23 11:07 how to hide the console window tianlijian
@ 2012-02-23 12:34 ` Corinna Vinschen
2012-02-23 16:01 ` tianlijian
2012-02-23 23:20 ` Andrey Repin
2 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2012-02-23 12:34 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to hide the console window.
2012-02-23 11:07 how to hide the console window tianlijian
2012-02-23 12:34 ` Corinna Vinschen
@ 2012-02-23 16:01 ` tianlijian
2012-02-23 23:20 ` Andrey Repin
2 siblings, 0 replies; 4+ messages in thread
From: tianlijian @ 2012-02-23 16:01 UTC (permalink / raw)
To: cygwin
hi
> 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 &"
>
>
>
> echo success...
> REM ping -n 3 127.0.0.1 >NUL
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to hide the console window.
2012-02-23 11:07 how to hide the console window tianlijian
2012-02-23 12:34 ` Corinna Vinschen
2012-02-23 16:01 ` tianlijian
@ 2012-02-23 23:20 ` Andrey Repin
2 siblings, 0 replies; 4+ messages in thread
From: Andrey Repin @ 2012-02-23 23:20 UTC (permalink / raw)
To: tianlijian, cygwin
Greetings, tianlijian!
> how to hide the console window.
Don't create it in first place.
If you want to run daemon - run the daemon.
net start sshd
However, you have to configure it properly first.
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 24.02.2012, <03:14>
Sorry for my terrible english...
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-23 23:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 11:07 how to hide the console window tianlijian
2012-02-23 12:34 ` Corinna Vinschen
2012-02-23 16:01 ` tianlijian
2012-02-23 23:20 ` Andrey Repin
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).