This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: [OT?] make bash script wait for called program to finish?
- From: Thomas L Roche <tlroche at us dot ibm dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Apr 2004 10:36:10 -0400
- Subject: RE: [OT?] make bash script wait for called program to finish?
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.
--
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/