Closed RajshekharHoratti closed 7 years ago
What exactly are you trying to achieve? From the Lua runtime within info-beamer os.execute
isn't available. My suggestion would be to either
INFOBEAMER_ENV_IP=1.2.3.4
and then use sys.get_env "IP"
(documentation) in Lua.Thanks a lot it worked..!! :)
Hello, I am new to lua programming and i was trying to get my raspberry pi's ip address from lua i tried using
os.execute('ifconfig wlan0 | grep "inet\ addr" | cut -d: -f2 | cut -d" " -f1')
but getting an error.So is there any other way to get ip address from lua.