I am getting the below error in python when trying to use below line in code:
ping = subprocess.Popen( ["ping", "-c", "3", host],
error:
b'Access denied. Option -c requires administrative privileges.\r\n..
I am using Atom IDE and windows 10 laptop. How do I resolve this issue?
You need to use option -n while running the script on Windows. The following will work.
ping = subprocess.Popen(["ping", "-n", "3", host])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With