Milo Thurston wrote:
> I've got a script that submits a whole load of condor jobs, and has to
> wait for each result to return in order to read it.
> Would something like this do, or is there a better solution?

Maybe this (essentially the same but more compact)?

> files.each do |file|
	sleep 1 until FileTest::exists?(file)
> 	if FileTest::exists?(file)
> 		# process the file
> 	else
> 		redo
> 	end
> end