Question: What is the purpose of running this Python script? import subprocess cmdping = ping -c1 10.10.10. for x in range (2,255): p = subprocess.Popen(cmdping+str(x), shell=True,
What is the purpose of running this Python script?
import subprocess
cmdping = "ping -c1 10.10.10."
for x in range (2,255): p = subprocess.Popen(cmdping+str(x), shell=True, stderr=subprocess.PIPE)
while True: out = p.stderr.read(1) if out == '' and p.poll() != None: break if out != '': sys.stdout.write(out) sys.stdout.flush()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
