How to wait for process to finish using IO.popen?

后端 未结 6 1619
北海茫月
北海茫月 2020-12-29 06:14

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

6条回答
  •  一整个雨季
    2020-12-29 06:28

    Do you need the output of popen? If not, do you want to use Kernel#system or some other command?

提交回复
热议问题