On Tue, Aug 20, 2002 at 11:29:23AM +0900, Shashank Date wrote:
> I am trying to write a ruby script (Ruby 1.7.2 mswin32) which does the
> following:
> 1. Spawn a few threads (say 3, for the time being) each of which invokes an
> external program using the backquotes.
> 2. Let the main thread continue till either all the threads are done
> executing OR some external event occurs (like deletion of a file by  another
> program).
> 
> I cannot seem to make it work (may be because thread implementation in Ruby
> is not "native" ?).
> Please help. TIA,
> -- Shanko
> 
You may not need threads.
Have you tried using fork, wait2 and redirect?

I am refactoring some code right now that does this.
I'll post it after I clean it up a little if you
want to see it.

Jim


-- 
Jim Freeze
If only I had something clever to say for my comment...
~