lua可以调用linux的命令么?
lua可以调用linux的命令么? os.execute philbar 发表于 2012-8-1 14:42 static/image/common/back.gifos.execute
嗯 刚也找到了
Lua-- just executing the command
os.execute("ls") -- to execute and capture the output,
use io.popenlocal f = io.popen("ls") -- store the output in a "file"
print( f:read("*a") ) -- print out the "file"'s content
页:
[1]