Re: Waiting for _any_ background process to terminate.

2013-02-11 Thread Alan Mackenzie
On Mon, Feb 11, 2013 at 02:34:53PM -0500, Greg Wooledge wrote: > On Mon, Feb 11, 2013 at 06:59:35PM +, Alan Mackenzie wrote: > > From a bash script, I'd like to be able to start several subtasks and > > react to any one of them completing. I don't think I can do this with > > the current bash.

Re: Waiting for _any_ background process to terminate.

2013-02-11 Thread Alan Mackenzie
On Mon, Feb 11, 2013 at 03:05:25PM -0500, Chet Ramey wrote: > On 2/11/13 1:59 PM, Alan Mackenzie wrote: > > Hi, bug-bash. > > From a bash script, I'd like to be able to start several subtasks and > > react to any one of them completing. I don't think I can do this with > > the current bash. The

Re: Waiting for _any_ background process to terminate.

2013-02-11 Thread Chet Ramey
On 2/11/13 1:59 PM, Alan Mackenzie wrote: > Hi, bug-bash. > > From a bash script, I'd like to be able to start several subtasks and > react to any one of them completing. I don't think I can do this with > the current bash. The `wait' function either waits on a specified subtask > to finish, or

Re: Waiting for _any_ background process to terminate.

2013-02-11 Thread Greg Wooledge
On Mon, Feb 11, 2013 at 06:59:35PM +, Alan Mackenzie wrote: > From a bash script, I'd like to be able to start several subtasks and > react to any one of them completing. I don't think I can do this with > the current bash. The `wait' function either waits on a specified subtask > to finish,