From: "List.rb" Date: 2008-10-21T03:19:56+09:00 Subject: Block method to yield stdout? All, I've written a distribution service that spawns processes using IO.popen in a seperate thread for each job. In my Task class, I would like to create a block method such as 'Task.monitor(mode="stdout")', which would yield the stdout for that task from that point forward. -- similar to tail -f, but for a multithreaded environment. The result would in essence be called like: task = Task.new(:cmd => "tail -f /some/log") sleep 10 task.monitor # fresh content from some/log will be yielded Since $stdout is global, what would be the beat way tackle this?