delorie.com/archives/browse.cgi | search |
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:to:subject:mime-version:content-type | |
:content-transfer-encoding:date:from:in-reply-to:references | |
:message-id; q=dns; s=default; b=MeonhOdncn70K3ZnnL+oDdmPB0AJgXo | |
k2nXRzX17lHhVtlAQHd1I/TiT6T8kd4mgcVo9CMNQ5DXkTlV5uzreKAu8lIV/Y6D | |
W6fSTuL+6w5e/R1UMhv4wSwb/FfpROowcXgvqXSVbUjnTd6dT7u37I/ERwlx8lmk | |
gXVDLT3AaSYw= | |
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:to:subject:mime-version:content-type | |
:content-transfer-encoding:date:from:in-reply-to:references | |
:message-id; s=default; bh=6fVfhahmlPoK+y6jRGML5POpXZQ=; b=aeHSt | |
hsSi4lxlOtmr4TcZ9t2iA6h6KuXlbmCHb7SfbvxSEnXKEE+3uqUL1wZW+2Owx+qh | |
afGn4wREXTKMIzLmjtp2x3EBvFzhbn2T6mvAtjYs47JY2gUjfG6A/IN4PTI3Qmaf | |
SRkCIS1Wq3kNLtf46nVl2BGkKctLeeD7ccvmp8= | |
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: | Yes, score=5.9 required=5.0 tests=AWL,BAYES_20,HELO_DYNAMIC_IPADDR,RCVD_IN_BRBL_LASTEXT,RDNS_DYNAMIC autolearn=no version=3.3.2 |
X-HELO: | lvps46-163-78-210.dedicated.hosteurope.de |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: Windows 7 64 Bit flashes DOSBox visible on Desktop when using run-1.3.0 or run2-0.4.2 to start Cygwin commands |
X-PHP-Originating-Script: | 0:func.inc |
MIME-Version: | 1.0 |
Date: | Tue, 28 Jan 2014 14:13:36 +0100 |
From: | dyle <dyle AT dyle DOT org> |
In-Reply-To: | <52E79153.9050200@gmail.com> |
References: | <77c04eb4a36928d74897e7618b8528a4 AT localhost> <52E79153 DOT 9050200 AT gmail DOT com> |
Message-ID: | <131987eed7ec441d0e5e3c6f48c2d380@localhost> |
X-Sender: | dyle AT dyle DOT org |
User-Agent: | RoundCube Webmail/0.3.1 |
X-IsSubscribed: | yes |
Hi, On Tue, 28 Jan 2014 12:15:31 +0100, Marco Atzeri <marco DOT atzeri AT gmail DOT com> wrote: > On 28/01/2014 10:37, dyle wrote: >> Hi *, ... > if you need to run a series of command, why don't you use > the mintty terminal ? The User should not get any Window at all. Not even a mintty. > I do not understand what are you trying to achieve with run, > it seems the wrong tool for your example. > > If you want to put a stop just before closing the scripts, > just add a read > "#!/bin/sh <CR> ls -1 | > wc -l > count_file.txt <CR> read" > > and it will wait a "Return" before completing the script and > closing the window. The problem is not the too-fast closing of the window but its opening in the first place. The script above is a mere example. >> Also I looked up the cygwin (and winsup) sources but was not lucky to >> find >> any code or run or run2. And there's no reference whatsoever in >> /usr/share/doc/run and /usr/share/doc/run2 on where to *obtain* the >> sources >> for these packages. They do not seem to be included in the regular cygwin >> CVS. > > use setup do download the source package. > All sources are available on "Select Packages" window, > forth column is called "Scr ?" > > Check the box, it will be deployed in "/usr/src" GREAT! Thank you Marco! With this I see, that the error is clearly at run2_gpl.c at line 350ff: if (bUseMessageOnlyWorkaround) { if (!bHaveConsole) { AllocConsole (); bHaveConsole = TRUE; SetParent ((*GetConsoleWindowFP) (), HWND_MESSAGE); } } else if (!bHaveConsole) { bHaveConsole = run2_setup_invisible_console (); } For Windows 7 the bUseMessageOnlyWorkaround is always TRUE and as I do not have a Console Window yet the AllocConsole() function of Win32 API is called. This pops up a Console Window. A DOS-BOX. And there is no help to this. Windows 7 just goes on, fires up a Window and places a cmd-prompt inside it. Right in your face. :( If I comment this line with // AllocConsole (); then my scripts do work as expected: No DOS-BOX window pops up. Yeee! Though stdout, stderr might be messy then. I might run in other troubles, since there's a reason for this call. But so far this ok for me (yet). Thx, Oliver -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |