zsh-users
 help / color / mirror / code / Atom feed
* wait for the next process to finish
@ 2011-12-12 15:46 Anthony R Fletcher
  2011-12-12 16:37 ` TJ Luoma
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Anthony R Fletcher @ 2011-12-12 15:46 UTC (permalink / raw)
  To: zsh-users

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.


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-12-13 20:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12 15:46 wait for the next process to finish Anthony R Fletcher
2011-12-12 16:37 ` TJ Luoma
2011-12-12 19:41 ` Wayne Davison
2011-12-13  7:15   ` Martin Richter
2011-12-13 16:07   ` Rory Mulvaney
2011-12-13 16:45     ` Jérémie Roquet
2011-12-13 16:59       ` Anthony R Fletcher
2011-12-13 18:08         ` Daniel Shahaf
2011-12-13 16:49     ` Christoph (Stucki) von Stuckrad
2011-12-13 17:31       ` Bart Schaefer
2011-12-13 17:04     ` Rory Mulvaney
2011-12-13 17:32       ` Anthony R Fletcher
2011-12-13 18:04         ` Jérémie Roquet
2011-12-13 18:20           ` Stephane Chazelas
2011-12-13 19:19             ` Anthony R Fletcher
2011-12-13 10:01 ` Peter Stephenson
2011-12-13 17:10   ` Bart Schaefer
2011-12-13 20:42     ` Rory Mulvaney
2011-12-13 17:45 ` Stephane Chazelas

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).