1

I'm trying to learn networking with python and would like to make a simple ping script that includes the response time as well. I don't really know where to start and if I could use the the socket module to help with this project.

Freddy-FazBear
  • 315
  • 2
  • 4
  • 13

1 Answers1

1

Why don't you just use the os module from the standard python library:

import os

hosts = [] # list of host addresses

for host in hosts:
    os.system('ping ' + host)
Malik Brahimi
  • 16,341
  • 7
  • 39
  • 70