Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --know what you do
- local input = ...
- if not input then return end
- local tmpFile = "/.tmp"
- local tmp=fs.open(tmpFile,"w")
- tmp.write(string.format([[print(tonumber(%s)~=nil and (%s) or "error")]],input,input))
- tmp.close()
- shell.run("/.tmp")
- shell.run("rm "..tmpFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement