在 2013年4月24日星期三UTC+8上午9时38分45秒,刘波涛写道:
最新版本的的Tengine-1.4.4安装此拓展无法执行os.execute
local system_signal = os.execute ("xxxx")
system_signal返回256
local file = assert(io.popen(xxxx, "r"))
local output = file:read('*all')
file:close()
print(output) 返回为空
‘
lua本地版本为5.1.5 系统为mac lion10.7.2
我执行的
os.execute("/usr/local/GraphicsMagick/bin/gm convert /opt/openresty/nginx/html/images/b041edbbjw1e3twcmfnvhj.jpg -thumbnail 40x40 -background gray -gravity center -extent 40x40 /opt/openresty/nginx/html/images/b041edbbjw1e3twcmfnvhj.jpg.40x40.jpg".." >/tmp/foo");