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=XPgUqXuEzJ2U6ZObol9G5tUNJKL/Bv/RiLrva0KHhSlOiMQNLt0jZ 96pRAZetvXXVDRxCnTfcpn7jlwOpdPuUP3mlhMqpZnj4LQ0f9MvGLpA7am6Uiap4 OJQrSoqlHac5AI/vVgx5uPXnDqNAGr1TmA8NMPRYWjBVPIeaEDmFZA= 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=/BJCD+JfO14JcO3IhJG97ijCGB4=; b=UKncrgnDY99P+yRlO7OKSDOwh2mX mIk4Y6v59Y4zE9lxs3Vic8ImcieE3d2uLp2LfgMuRjEF4/9feVLrVEWrtXHQJIYu tOf7edamTQAwoYQf3I+B+tzXkyikgMaJDM5QwXE33w9VO0Ba3L3Oy5TjFIoUlbEb 99pntE8gyjcgSGk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=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 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> <1414010093 DOT 92003 DOT YahooMailNeo AT web162802 DOT mail DOT bf1 DOT yahoo DOT com> <1606505198 DOT 20141023052833 AT yandex DOT ru> <1414037878 DOT 2285 DOT YahooMailNeo AT web162805 DOT mail DOT bf1 DOT yahoo DOT com> <1414067059 DOT 70749 DOT YahooMailNeo AT web162802 DOT mail DOT bf1 DOT yahoo DOT com> <87tx2uu0u5 DOT fsf AT Rainer DOT invalid> Message-ID: <1414089882.48529.YahooMailNeo@web162802.mail.bf1.yahoo.com> Date: Thu, 23 Oct 2014 11:44:42 -0700 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 AT cygwin DOT com" In-Reply-To: <87tx2uu0u5.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes >________________________________ > 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