I\'m using IO.popen in Ruby to run a series of command line commands in a loop. I then need to run another command outside of the loop. The command outside of t
IO.popen
I suggest you use Thread.join to synchronize the last popen call:
Thread.join
popen
t = Thread.new do for foo in bar IO.popen(cmd_foo) end end t.join IO.popen(another_cmd)