阅读背景:

Ruby出现时可以从shell命令输出输出吗?

来源:互联网 

My Ruby script is running a shell command and parsing the output from it. However, it seems the command is first executed and output saved in an array. I would like to be able to access the output lines in real time just as they are printed. I've played around with threads, but haven't got it to work. Any suggestions?My Ruby script is running a shell command and p




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: