I'm trying to develop a script where a ping command hits 100ms it stops. Is there an easy way to do this?
It would be something like:
import subprocess
command = ['ping', '-c', '4', '8.8.8.8']
proc = subprocess.run(command)
if time > 100:
break