tibia-client/modules/corelib/ext/os.lua

7 lines
138 B
Lua
Raw Normal View History

2012-01-08 16:42:23 +01:00
function os.execute(command)
local f = assert(io.popen(command, 'r'))
local data = assert(f:read('*a'))
f:close()
print(data)
end