When I try to cat, less or vi the *.lua files on my Yun they all come up as binary. Same happens if I 'scp' to my local machine and open them in vim or sublime text. Anybody seen this/have any idea why it's happening?
mlangdon:
When I try to cat, less or vi the *.lua files on my Yun they all come up as binary. Same happens if I 'scp' to my local machine and open them in vim or sublime text. Anybody seen this/have any idea why it's happening?
mlangdon:
When I try to cat, less or vi the *.lua files on my Yun they all come up as binary. Same happens if I 'scp' to my local machine and open them in vim or sublime text. Anybody seen this/have any idea why it's happening?
What file type does 'file' indicate for it?
With Lua you can pre-compile your programs into bytecode to enable faster startup (see the man page for "luac"). You would need to find the uncompiled version of those programs.
If I get the uncompiled versions from github and make changes, do I need to compile them before uploading to the Yun? Or do they auto-compile on first run like Python?
mlangdon:
When I try to cat, less or vi the *.lua files on my Yun they all come up as binary. Same happens if I 'scp' to my local machine and open them in vim or sublime text. Anybody seen this/have any idea why it's happening?
What file type does 'file' indicate for it?
opkg update
opkg install file
root@Arduino:/usr/bin# file /usr/lib/lua/luci/controller/arduino/index.lua
/usr/lib/lua/luci/controller/arduino/index.lua: Lua bytecode, version 5.1
If I get the uncompiled versions from github and make changes, do I need to compile them before uploading to the Yun? Or do they auto-compile on first run like Python?