Simple Command Line Script Execution

lua-users home

To Execute a script from the command line, e.g from a NSLU2 running openWrt Kamikaze 8.09rc2 with Lua in the path:

echo "print(\"Hello, World\")" > test.lua

lua test.lua

The result is:

Hello, World

RecentChanges · preferences
edit · history
Last edited February 9, 2009 6:03 pm GMT (diff)