webhookd icon indicating copy to clipboard operation
webhookd copied to clipboard

Ability to execute Lua (Shell) scripts ?

Open nodecentral opened this issue 4 years ago • 1 comments
trafficstars

Hi

Looking at the build/dockerfile - I have a number of Lua scripts that I’d like to execute from the bash/shell/command line.

Here’s an example lua_test.lua to run.

#!/usr/bin/lua

print ("Hello World!")
print ("*******************")
local saydatetime = os.date('%H, %M. On. %A %B %d :')
print(saydatetime)
print ("*******************")

What would I need to do to enable that capability ?

nodecentral avatar Aug 12 '21 08:08 nodecentral

Hi,

if you are using Docker you have to create your own Dockerfile and install lua interpreter (RUN apk install lua5.3). Don't forget to make your script executable (chmod +x lua_test.lua).

ncarlier avatar Aug 12 '21 09:08 ncarlier