04.03.2026, 09:54
THANK YOU VERY MUCH,
I've been able to verify that if we create a script with the function from the first link on an object:
function ping(ip)
local res = os.execute('ping -c 2 -W 5 ' .. ip)
return res == 0
end
res = ping('192.168.0.11')
grp.checkwrite('32/6/113', res)
And the IP address is incorrect or there's no communication, the script returns 0.
I have a question: I have a series of IP addresses that need to appear on the screen like this, but I can't get it to work.
I've been able to verify that if we create a script with the function from the first link on an object:
function ping(ip)
local res = os.execute('ping -c 2 -W 5 ' .. ip)
return res == 0
end
res = ping('192.168.0.11')
grp.checkwrite('32/6/113', res)
And the IP address is incorrect or there's no communication, the script returns 0.
I have a question: I have a series of IP addresses that need to appear on the screen like this, but I can't get it to work.