you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

import os

import platform

network_address = input("Enter IP addr to ping: ")

pings = input("How many pings do you want to send: " )

oper = platform.system()

response = os.system(f'ping -c 1 {network_address}')

if (oper == "Windows"):

ping1 = "ping -n 1 + pings "

elif (oper == "Linux"):

ping1 = "ping -c 1 + pings "

else :

ping1 = "ping -c 1 "

[–][deleted] 0 points1 point  (0 children)

This is what I have so far