Advertisement
Guest User

exe

a guest
Jul 24th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. --know what you do
  2. local input = ...
  3. if not input then return end
  4. local tmpFile = "/.tmp"
  5. local tmp=fs.open(tmpFile,"w")
  6. tmp.write(string.format([[print(tonumber(%s)~=nil and (%s) or "error")]],input,input))
  7. tmp.close()
  8. shell.run("/.tmp")
  9. shell.run("rm "..tmpFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement