Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- metatable.__index=function(t,k)
- local data=io.popen('timeout -s 9 10 curl -s http://'..k..'.bluevm.com/uptime.php -o /dev/stdout'):read'*a'
- if data:sub(1,1)=="<" then return 'script not found' end
- return json:decode(data)
- end
- setmetatable(bluevm,metatable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement