public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Starting mintty via run.exe
@ 2014-10-16 19:43 John Wiersba
  2014-10-16 23:34 ` Eliot Moss
  0 siblings, 1 reply; 26+ messages in thread
From: John Wiersba @ 2014-10-16 19:43 UTC (permalink / raw)
  To: cygwin

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

Thanks!

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

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-10-23 21:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 19:43 Starting mintty via run.exe John Wiersba
2014-10-16 23:34 ` Eliot Moss
2014-10-17  3:39   ` John Wiersba
2014-10-17  3:51     ` John Wiersba
2014-10-17 13:14       ` Eliot Moss
2014-10-17 21:52         ` cygcheck -s segfaults in cygwin64 on Win7Pro-64 John Wiersba
2014-10-18  3:59           ` Marco Atzeri
2014-10-20 22:39             ` John Wiersba
2014-10-21  8:03               ` Andrew Schulman
2014-10-21 11:03                 ` Corinna Vinschen
2014-10-21 15:31                   ` John Wiersba
2014-10-21 16:54         ` run.exe flashes non-hidden console window " John Wiersba
2014-10-22 13:50           ` Andrey Repin
2014-10-22 20:37             ` John Wiersba
2014-10-23  0:20               ` Doug Henderson
2014-10-23  1:35                 ` Andrey Repin
2014-10-23  8:42                   ` Andrew Schulman
     [not found]                   ` <1414037878.2285.YahooMailNeo@web162805.mail.bf1.yahoo.com>
2014-10-23 12:24                     ` John Wiersba
2014-10-23 17:56                       ` Achim Gratz
2014-10-23 18:47                         ` John Wiersba
2014-10-23 18:34                       ` Doug Henderson
2014-10-23 19:15                         ` John Wiersba
2014-10-23 19:40           ` Doug Henderson
2014-10-23 20:26             ` John Wiersba
2014-10-23 20:52               ` Achim Gratz
2014-10-23 21:25                 ` John Wiersba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).