On Tue, Jan 01, 2013 at 12:14:19AM +0800, wgm.china wrote:
> 你好!
> 我在openresty 中调用os.execute()调用系统命令,只有一个number的返回状态,0表示成功;其它数字表示失败。
> 我希望能够取到执行结果的返回值,如os.execute("ls -l"),只返回了0 ,我希望能够返回list的结果,不知道该怎么做?
io.popen
--
Best regards,
lilydjwg
Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?