I'm leaving the question for reference.
I'm trying to use io.popen to ping a host.
The line is:
Code: Select all
local p = io.popen('ping -n 1 -w 1 ' .. addr_lan)
The error messag in the log is:
Code: Select all
Script: Ping2Hosts.lua:21: attempt to call field 'popen' (a nil value)
(I used os.execute before, but that flashed a command window every time, which was annoying.)
Any other way to get a ping result, without flashing windows?
Thanks in advance.