I have a simple script in Python using VS Code to make a ping verification, I don't know why it isn't recognize 'ping' as a command.
import os
ip_list = ["8.8.8.8", "8.8.4.4"]
for ip in ip_list:
response = os.popen(f"ping {ip}").read()
if "Received = 4" in response:
print(f"UP {ip} Ping Successful")
else:
print(f"DOWN {ip} Ping unsuccessful")




