Sending commands from shell script to Pinnacle #217
-
Is it possible to send commands ran from a bash script as you can using say |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, but you'll need to use the Lua API and either
If you're not limited to bash you can also run executable Lua files directly. For the specifics, you can run the require("pinnacle").run(function(Pinnacle)
-- Anything you can run in a normal Lua config you can use here
end) Just note the following caveats:
If you need to print output from the script in json you can install luarocks install --local lua-cjson and print tables as json with print(require("cjson").encode(<your table here>)) |
Beta Was this translation helpful? Give feedback.
Yes, but you'll need to use the Lua API and either
lua
:If you're not limited to bash you can also run executable Lua files directly.
For the specifics, you can run the
run
function (notsetup
, this will block):Just note the following caveats:
run
returns you'll lose those keybinds. This may be changed in …