Ping Multiple IP address using a txt file with Python script

Pubblicato il: 15 agosto 2022
sul canale di: CP Breeze Tech
322
6

#Ping to multiple IP addresses

import os
import time
import random

txt_file = input('Please enter IP addresses list text file location\n')
ip_list = open(txt_file,"r")
time_delay = random.randrange(1,5)

for ip in ip_list:
print('Pinging Now the following host IP address:',ip)
print('_'*50)
os .system('ping -n 2 -w 1500 {}'.format (ip))
print('_'*50)
time.sleep(time_delay)


In questa pagina del sito puoi guardare il video online Ping Multiple IP address using a txt file with Python script della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CP Breeze Tech 15 agosto 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 322 volte e gli è piaciuto 6 spettatori. Buona visione!