From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22606 invoked by alias); 23 Oct 2014 18:47:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22594 invoked by uid 89); 23 Oct 2014 18:47:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_40,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nm35-vm8.bullet.mail.ne1.yahoo.com Received: from nm35-vm8.bullet.mail.ne1.yahoo.com (HELO nm35-vm8.bullet.mail.ne1.yahoo.com) (98.138.229.104) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 23 Oct 2014 18:47:36 +0000 Received: from [127.0.0.1] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 23 Oct 2014 18:47:34 -0000 Received: from [98.138.100.113] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 23 Oct 2014 18:44:45 -0000 Received: from [98.139.215.141] by tm104.bullet.mail.ne1.yahoo.com with NNFMP; 23 Oct 2014 18:44:42 -0000 Received: from [98.139.212.219] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 23 Oct 2014 18:44:42 -0000 Received: from [127.0.0.1] by omp1028.mail.bf1.yahoo.com with NNFMP; 23 Oct 2014 18:44:42 -0000 Received: (qmail 52339 invoked by uid 60001); 23 Oct 2014 18:44:42 -0000 Received: from [198.91.4.14] by web162802.mail.bf1.yahoo.com via HTTP; Thu, 23 Oct 2014 11:44:42 PDT References: <1413488630.82429.YahooMailNeo@web162806.mail.bf1.yahoo.com> <544055FF.2030604@cs.umass.edu> <1413517183.86611.YahooMailNeo@web162801.mail.bf1.yahoo.com> <1413517863.36122.YahooMailNeo@web162806.mail.bf1.yahoo.com> <54411638.2000104@cs.umass.edu> <1413910316.59036.YahooMailNeo@web162803.mail.bf1.yahoo.com> <1245475041.20141022173600@yandex.ru> <1414010093.92003.YahooMailNeo@web162802.mail.bf1.yahoo.com> <1606505198.20141023052833@yandex.ru> <1414037878.2285.YahooMailNeo@web162805.mail.bf1.yahoo.com> <1414067059.70749.YahooMailNeo@web162802.mail.bf1.yahoo.com> <87tx2uu0u5.fsf@Rainer.invalid> Message-ID: <1414089882.48529.YahooMailNeo@web162802.mail.bf1.yahoo.com> Date: Thu, 23 Oct 2014 18:47:00 -0000 From: John Wiersba Reply-To: John Wiersba Subject: Re: run.exe flashes non-hidden console window in cygwin64 on Win7Pro-64 To: Achim Gratz , "cygwin@cygwin.com" In-Reply-To: <87tx2uu0u5.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00374.txt.bz2 >________________________________ > From: Achim Gratz >John Wiersba writes: >> Maybe I'm confused. Isn't the purpose of run.exe to start a >> cygwin program without creating a (visible) console window? > >The purpose of run is to start a Windows program that needs a console to >exist and hide the console window created by windows if there is no >console that the program can attach to (which would otherwise clutter >the taskbar even when minimized). I believe this fits what I am trying to do. Start a console program (/bin/bash.exe) without a console being visible, even for a short period of time. >> I can just start a cygwin program directly without the indirection of >> run.exe if I don't care about the random flashing console window. > >What are you actually trying to do? Starting mintty from a Windows >shortcut doesn't produce a console window to start with and you can just >tell mintty what program you intend to run inside it. My scenario is to eventually start mintty. But I want to script up the arguments to mintty so I didn't have to type them into the windows shortcut. I created a shortcut: d:\cygwin\bin\run.exe /bin/bash.exe script.sh (I would prefer: d:\cyginw\run.exe script.sh, but that doesn't work for some reason) where script.sh eventually starts mintty with some command line arguments. However, I don't want the flashing window before the bash script calls mintty. Run.exe flashes a console window before (or in the process of) starting bash. If I don't use run.exe and instead start bash.exe directly with d:\cygwin\bin\bash.exe script.sh I get an extra console window. So, run.exe is successfully getting rid of that extra console window, but in the process it flashes the console window, which is what I'm trying to get rid of (and I think might be a bug in run.exe). Additionally, I have other scenarios where I would like to start bash from a windows shortcut without a flashing console window, even though run.exe is successful in not leaving a console window on the taskbar. >Regards, >Achim. >-- >+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > >Wavetables for the Terratec KOMPLEXER: >http://Synth.Stromeko.net/Downloads.html#KomplexerWaves > >-- >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