delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/19/11:05:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040419105600.02fbf810@127.0.0.1>
X-Sender:
Date: Mon, 19 Apr 2004 11:01:06 -0400
To: Thomas L Roche <tlroche AT us DOT ibm DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: RE: [OT?] make bash script wait for called program to finish?
In-Reply-To: <OFB122128A.3BE702B1-ON85256E7B.004DC93B-85256E7B.0050378E@ us.ibm.com>
References: <F76C9B2DA2FC4C4CA0A18E288BBCBCF7082177EC AT nihexchange24 DOT nih DOT gov> <OFB122128A DOT 3BE702B1-ON85256E7B DOT 004DC93B-85256E7B DOT 0050378E AT us DOT ibm DOT com>
Mime-Version: 1.0

At 10:36 AM 4/19/2004, you wrote:
>Barry Buchbinder Sun, 18 Apr 2004 18:56:47 -0400
>>>>> How about the following?
>>>>> $ cmd /c start /wait program_being_waited_for
>
>Tom Roche Sunday, April 18, 2004 8:01 PM
>>>> I've never run windows' shell from bash, but that does the job.
>
>Larry Hall 04/18/2004 07:12 PM
>>> [For 'wait n',] 'n' is a proc id.  See 'man bash'.
>
>arrgghh: I tried "{info, man} wait".
>
>Buchbinder, Barry 04/19/2004 10:03:00 AM:
>> (at least on XP) if you just start the program without using
>> cygstart or putting it in the background with &, the shell just
>> waits for it to finish.
>
>I'm not sure if the problem is that
>
>* I'm on 2k
>
>* the program being run is java-based
>
>but bash does not stop.


Clearly, whatever your program is, it effectively runs a separate process,
otherwise you wouldn't see the problem you do (as Barry points out).  It's
not strictly related to the O/S or the programming language. 

I think we've covered this rather off-topic subject well enough.  I'd like
to suggest that we end the thread here unless something Cygwin-specific 
surfaces.



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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019