【发布时间】:2019-02-23 23:02:31
【问题描述】:
我想运行一个进程并捕获它的输出。根据the documentation,方法open(command, stdio=devnull; write::Bool = false, read::Bool = !write) 应该返回一个元组(stream,process)。但是在运行时
typeof(open(`ls`))
输出为Base.Process。所以只返回进程,不返回流。
我是否误解了文档?如何启动进程并以某种方式捕获其输出。
【问题讨论】: