Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
wait for the next process to finish
- X-seq: zsh-users 16620
- From: Anthony R Fletcher <arif@xxxxxxxxxxxx>
- To: <zsh-users@xxxxxxx>
- Subject: wait for the next process to finish
- Date: Mon, 12 Dec 2011 10:46:01 -0500
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I just realised that the 'wait' command will either wait for specified
jobs or all jobs and nothing in between. The manual says "If job is not
given then all currently active child processes are waited for.".
So
sleep 30 &
sleep 10 &
sleep 30 &
sleep 30 &
wait
waits for all the sleeps to finish.
How can I wait for just the next job to finish?
Anthony.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author