This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Interrupts, bash and .cmd scripts
- From: Larry Hall <lh-no-personal-replies-please at cygwin dot com>
- To: "Gregory F. March" <march at gfm dot net>, Cygwin List <cygwin at cygwin dot com>
- Date: Wed, 04 Aug 2004 11:26:35 -0400
- Subject: Re: Interrupts, bash and .cmd scripts
- References: <Your message of Tue, 03 Aug 2004 22:25:16 -0400.<6.1.0.6.0.20040803221317.033a5b60@pop.prospeed.net> <200408041155.i74Btpu16830@bug.gfm.net>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 07:55 AM 8/4/2004, you wrote:
> |Following up on some of that advice, did you try googling? I found
> |this by looking for "Control-C" and "rxvt" in 2004.
> |
> |<http://www.cygwin.com/ml/cygwin/2004-02/msg01422.html>
> |
> |Looks relevant to me, no?
>
>No, unfortunately not. The issue is not that ^C doesn't do anything, it is
>that it does interrupt the script, but it appears to leave what ever the
>script ran in the background. Doing some experimenting, I found the
>following to demonstrate the problem:
>
>foo.sh:
>
> #!/bin/bash
>
> /cygwin/c/Program\ Files/mozilla.org/Mozilla/mozilla/exe
>
>foo.cmd:
>
> "c:\Program Files\mozilla.org\Mozilla\mozilla.exe"
>
>When running foo.sh, a ^C will terminate mozilla and return the command
>prompt. When running foo.cmd, ^C will return the command prompt, but leave
>mozilla running.
>
>This is easy to deal with in terms of mozilla - I can just go exit mozilla.
>But with things like WLS, killing the java processes is a PITA.
>
>Any ideas? Thanks....
Did you follow the whole thread? I only pointed you to the beginning (so
you got the context) but it is the later posts that are most relevant to
your predicament IMO.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/