Lua

check args

if (table.getn(arg) == 0) then
    print("Usage: ./print-fetch {printerSocket} {remoteURL} {id}")
    return
end

Sample code

http://lua-users.org/wiki/SampleCode

Doodle3D publish-wifibox-release.lua “This script requires the Penlight library”

export LUA_CPATH=/opt/local/share/luarocks/lib/lua/5.2/?.so export LUA_PATH=/opt/local/share/luarocks/share/lua/5.2/?.lua

use the luarocks package manager to install a package / library

sudo luarocks install luasocket

where are the LUA packages / libraries

print(package.path.."
"..package.cpath)

Luv it

Nodejs maar dan voor lua