delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/22/16:38:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:references:message-id:date:from:reply-to
:subject:to:in-reply-to:mime-version:content-type; q=dns; s=
default; b=Sh4L+kqCHJpJm4cR8UZh/o8kRdXyUyzllIxHzEGheKJHt0heVXC9k
MhhvNpfpSy8S8ZuMf7P06zZfKXQe5iTh0snMXTjeFJe2SlWZp8tM+9F37K87wk4j
B981AVguzoC3lsEPWyW06lvM56Q+Q79zxbl/sQxh720WRmpdDo/bPU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:references:message-id:date:from:reply-to
:subject:to:in-reply-to:mime-version:content-type; s=default;
bh=yiex7N4mMisnlYWfAYgF74HrUgU=; b=BWXtwgrAKCRj3glqODWXW3CV5npk
XYGrC8WZMadgn70PKXsYd2vJQBhD51N6ZxN5AxP16MxKDUzMNTzLyD3TuOW94/l/
JV0u07F0EehCiRkRXK4fpiKiE/OgawFJQ4vPoJGZvPtmISkrjohttDGAtI7QY/N1
PjLSBHBYhRoKS1o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nm34-vm1.bullet.mail.ne1.yahoo.com
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>
Message-ID: <1414010093.92003.YahooMailNeo@web162802.mail.bf1.yahoo.com>
Date: Wed, 22 Oct 2014 13:34:53 -0700
From: John Wiersba <jrw32982 AT yahoo DOT com>
Reply-To: John Wiersba <jrw32982 AT yahoo DOT com>
Subject: Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
In-Reply-To: <1245475041.20141022173600@yandex.ru>
MIME-Version: 1.0
X-IsSubscribed: yes

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 AT yandex DOT ru>
>To: John Wiersba <jrw32982 AT yahoo DOT com>; cygwin AT cygwin DOT 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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019