Added env vars to Lua example.
This commit is contained in:
parent
6773191bee
commit
73d9890f93
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
||||||
permalink: /cgi/lua/index.lua
|
permalink: /cgi/lua/index.lua
|
||||||
---
|
---
|
||||||
|
|
||||||
|
print('Cache-control: no-cache')
|
||||||
|
print('Pragma: no-cache')
|
||||||
print("Content-type: text/plain; charset=utf-8")
|
print("Content-type: text/plain; charset=utf-8")
|
||||||
print()
|
print()
|
||||||
print("Hello from Lua!")
|
print("Hello from Lua!")
|
||||||
|
|
@ -11,4 +13,5 @@ print(os.date("%a %b %d %H:%M:%S %Z %Y"))
|
||||||
print()
|
print()
|
||||||
print("for i = 1,10 do print(i) end")
|
print("for i = 1,10 do print(i) end")
|
||||||
for i = 1,10 do print(i) end
|
for i = 1,10 do print(i) end
|
||||||
|
print()
|
||||||
|
print(os.execute('/usr/bin/env | /usr/bin/sort'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue