【发布时间】:2013-03-06 03:47:21
【问题描述】:
我所说的 tail 是指在运行时捕获命令输出,而不是在执行结束时获取它。例如,如果您执行一个长时间运行的命令,它将如下所示:
# Run command
puts `ey deploy`
# Nothing happening for a while....
# ...
# Now see all of the output at once.
我想做的是通过 ruby 运行命令并查看它的输出。
【问题讨论】:
-
将整个命令(带有
tail)放在反引号中。