This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64
- From: John Wiersba <jrw32982 at yahoo dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 22 Oct 2014 13:34:53 -0700
- Subject: Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64
- Authentication-results: sourceware.org; auth=none
- References: <1413488630 dot 82429 dot YahooMailNeo at web162806 dot mail dot bf1 dot yahoo dot com> <544055FF dot 2030604 at cs dot umass dot edu> <1413517183 dot 86611 dot YahooMailNeo at web162801 dot mail dot bf1 dot yahoo dot com> <1413517863 dot 36122 dot YahooMailNeo at web162806 dot mail dot bf1 dot yahoo dot com> <54411638 dot 2000104 at cs dot umass dot edu> <1413910316 dot 59036 dot YahooMailNeo at web162803 dot mail dot bf1 dot yahoo dot com> <1245475041 dot 20141022173600 at yandex dot ru>
- Reply-to: John Wiersba <jrw32982 at yahoo dot com>
Andrey, the flashing console flashes very quickly and I don't know how to slow it down.
It appears to have no title and no contents.
I gave up on using the bash option -c, because of clashes due to mixing windows and
linux command line parsing conventions. So, instead I created a script /d/try:
export PATH=/bin
sleep 10
date >>/d/out.txt # cygdrive is /
Here are the results of my recent tests:
When I run:
D:\cygwin\bin\run.exe /bin/bash --norc /d/try
then there is a flashing console window which closes immediately. It appears to have no title or
contents but it's hard to tell since it flashes so quickly. In the process list of Process
Explorer (from Microsoft's SysInternals), I can see:
1) conhost.exe "Console Window Host" (nested under csrss.exe "Client Server Runtime Process"))
2) bash.exe (at the top level)
3) sleep.exe (at the top level)
After the expected 10 seconds, the processes disappear and the file /d/out.txt gets written to.
If I run instead:
D:\cygwin\bin\bash.exe --norc /d/try
I get an empty console window (which doesn't close immediately), with the same title as my
shortcut name. This console window closes after the specified 10 seconds. In this case, there
is a slight change in the processes running:
1) conhost.exe "Console Window Host" (nested under csrss.exe "Client Server Runtime Process"))
2) bash.exe (running under explorer.exe "Windows Explorer")
3) sleep.exe (at the top level)
So, definitely, run.exe is *not* preventing the flashing console window as I expected it to.
>________________________________
> From: Andrey Repin <anrdaemon@yandex.ru>
>To: John Wiersba <jrw32982@yahoo.com>; cygwin@cygwin.com
>Sent: Wednesday, October 22, 2014 9:36 AM
>Subject: Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64
>
>
>Greetings, John Wiersba!
>
>
>> I'm trying to use run.exe to avoid a flashing console window, but it is not
>> working on my cygwin64 install on Win7Pro-64. This is a fresh install from
>> 10/20/2014. I've attached my cygcheck.out. I've tried the following
>> windows shortcuts and all cause a console window to briefly flash (in the
>> case of mintty a console window flashes before the mintty terminal is displayed).
>
>> D:\cygwin\bin\run.exe /bin/bash -c "echo hi"
>> D:\cygwin\bin\run.exe /bin/env -i PATH=/bin bash --norc -c "echo hi"
>> D:\cygwin\bin\run.exe /bin/env -i PATH=/bin mintty bash --norc
>
>
>> Since hiding the console window is the main purpose of run.exe, it seems
>> that it is badly broken for Win7Pro-64.
>
>Can you tell, what is that console? I.e. what's in it's header?
>
>
>--
>WBR,
>Andrey Repin (anrdaemon@yandex.ru) 22.10.2014, <17:35>
>
>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
>
>
>
>
>
--
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