delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/16/19:34:44

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:message-id:date:from:reply-to:mime-version:to
:cc:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=plVo4uESiRRkLiPc
9pWnH7WdogpLWt11i94Yk6yZ3ptStYdcVx04dEzUVrSfqhcK670c4/SApheeS39e
5x82LmZ6mH0AmlzckbtkgfEJPWaxYNB1ahFiOTG1hsQt/TLFndGGuEIgF9YKbV/L
Q9au9pYISg3Ht8kV2g8YfaPso1g=
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:message-id:date:from:reply-to:mime-version:to
:cc:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=26CDU/qqGQXDz8kjkMVBn/
9AwlY=; b=J1C2fc04Gi1c+zyazdfysH5gCqLyPSx2PGvxy7Spuh63AJnYm+JYx0
sP7Ck27rlhpPL+qhuAC5GbfwE2G7lNp/CQr7L0oQ7Fav0d6hkfMl9zhkPTzxXMg2
R3z3jWynrURp35LEoH0Sm7MbVfJ0IU1sVxC+AQIZA8pktNLQ7nPho=
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=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: csmail.cs.umass.edu
Message-ID: <544055FF.2030604@cs.umass.edu>
Date: Thu, 16 Oct 2014 19:34:23 -0400
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Reply-To: moss AT cs DOT umass DOT edu
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: jrw32982 AT yahoo DOT com
Subject: Re: Starting mintty via run.exe
References: <1413488630 DOT 82429 DOT YahooMailNeo AT web162806 DOT mail DOT bf1 DOT yahoo DOT com>
In-Reply-To: <1413488630.82429.YahooMailNeo@web162806.mail.bf1.yahoo.com>
X-IsSubscribed: yes

On 10/16/2014 3:43 PM, John Wiersba wrote:
> I'm trying to create a Windows shortcut which will start mintty indirectly by running a (perl) script which will exec mintty.  I know I can start mintty.exe directly via the shortcut, but the purpose of my script is to wrap the invocation in the proper environment and arguments.
>
> I'm encountering two problems using run.exe:
>
> 1) run.exe doesn't seem to be able to run a hashbang script.  My script starts with #!/usr/bin/perl and runs just fine from a cygwin bash command line, starting a new mintty terminal as expected.  But calling it from run.exe fails.  Clicking on the shortcut flashes some kind of terminal window on the screen, which appears to have no content (but it is hard to tell, since it flashes so quickly) and then the terminal window immediately closes. In this case, my shortcut target is: d:\cygwin\bin\run.exe /path/to/hashbang/script.
>
> 2)  When I change my shortcut target to: d:\cygwin\run.exe perl /path/to/hashbang/script, then it runs the script and starts a mintty terminal session, but I still get the flashing terminal window before the eventual mintty starts, which I don't want.  I thought the purpose of run.exe was to hide such a terminal window?  There must be something I'm not understanding about how run.exe works or its purpose.
>
>
> Finally, is there any way I can debug what's going on without rebuilding run.exe?  For example, can I prevent the flashing window from flashing so quickly (in case there's a message displayed there).

You posted this same question this morning ...

And I answered it about 20 minutes later.

Why are you posting again?  You risk annoying the
list subscribers ...

Regards -- Eliot Moss

--
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