work #1
@ -23,7 +23,7 @@ while(True):
|
||||
print(pingaddresses)
|
||||
for ip in pingaddresses:
|
||||
print(ip)
|
||||
response = sp.getstatusoutput(f"ping -c 1 {ip}")
|
||||
response = sp.getstatusoutput(f"/usr/bin/ping -c 1 {ip}")
|
||||
if(response[0]!=0):
|
||||
time=2000
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user