Bootstrap FreeKB - OpenResty - LUA script
OpenResty - LUA script

Updated:   |  OpenResty articles

This assumes you have installed OpenResty on a Linux system.

The resty command line tool can be used to issue in line commands, like this.

~]# resty -e 'print("Hello World")'
Hello World

 

Another approach is to place commands in a LUA file. Let's say foo.lua contains the following.

print("Hello World")

 

Here is how you would invoke foo.lua.

~]# resty foo.lua
Hello World

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 5a498a in the box below so that we can be sure you are a human.