Question: This is python script. So, the output is like that SO how can I change this script to make output just like this. no this

This is python script. So, the output is like that

This is python script. So, the output is like that SO howcan I change this script to make output just like this. no

SO how can I change this script to make output just like this.this ping stuff. import os, netifaces gateway = netifaces.gateways()['default'][2][0] os.system('clear') response =

no this ping stuff. os.system("ping -c 1"+gateway) Supreme = os.system('ping -c 1 '+ 'supremenewyork.com') print('** Begin

import os, netifaces

gateway = netifaces.gateways()['default'][2][0] os.system('clear')

response = os.system("ping -c 1"+gateway) Supreme = os.system('ping -c 1 '+ 'supremenewyork.com')

print('** Begin Test ** ') print(' 5 ') print(' 4 ') print(' 3 ') print(' 2 ') print(' 1 ')

print('Your deault gateway is ',gateway)

if response == 0: print('Connection to deafult gateway ','is FAILED ! ') else: print('Connection to deafult gateway ','is SUCCESSFUL ') if Supreme == 0 : print('Remote connection is FAILED ! ') print('DNS reolution is FAILED ! ') else: print('Remote connection is SUCCESSFUL ! ') print('DNS reolution is SUCCESSFUL ! ')

print('** Test Compelete **')

[ student@localhost - ] $ cd Desktop (student@localhost Desktop]$ python Script1.py Usage: ping [-aAbBdDfhLnOqrRUVV64] [-C count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] [hopl ...] destination Usage: ping -6 [-aAbBdDfhLnOqrRUVV] [-C count] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] destination PING supremenewyork.com (52.68.255. 144) 56(84) bytes of data. --- supremenewyork.com ping statistics -- 1 packets transmitted, o received, 100% packet loss, time Oms Begin Test ** [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] destination PING supremenewyork.com (52.68.255. 144) 56(84) bytes of data. --- supremenewyork.com ping statistics --- 1 packets transmitted, o received, 100% packet loss, time Oms ** Begin Test ** ('Your deault gateway is ', '10.150.101.254') ('Connection to deafult gateway', 'is SUCCESSFUL ') Remote connection is SUCCESSFUL ! DNS reolution is SUCCESSFUL ! ** Test Compelete ** (student@localhost Desktop]$ 1 File Edit View Search Terminal Help *** Beginning Test *** Your default gateway is 192.168.10.254. Connection to default gateway is SUCCESSFUL! Remote Connection SUCCEDED! DNS resolution SUCCEDED! *** Test Complete. *** [student@webserver Desktop]$ 1 Jsage: ping [-AbBdDfhLnOqrRUVV64] [-C count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-W deadline] [-W timeout] [hopl ...] destination Jsage: ping -6 [-aAbBdDfhlnoqrRUVV] [-C count] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc option] [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-5 sndbuf] [-t ttl] [-T timestamp_option] [-W deadline] [-W timeout] destination PING supremenewyork.com (52.68.255.144) 56(84) bytes of data. --- supremenewyork.com ping statistics --- 1 packets transmitted, o received, 100% packet loss, time Oms [ student@localhost - ] $ cd Desktop (student@localhost Desktop]$ python Script1.py Usage: ping [-aAbBdDfhLnOqrRUVV64] [-C count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] [hopl ...] destination Usage: ping -6 [-aAbBdDfhLnOqrRUVV] [-C count] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] destination PING supremenewyork.com (52.68.255. 144) 56(84) bytes of data. --- supremenewyork.com ping statistics -- 1 packets transmitted, o received, 100% packet loss, time Oms Begin Test ** [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] destination PING supremenewyork.com (52.68.255. 144) 56(84) bytes of data. --- supremenewyork.com ping statistics --- 1 packets transmitted, o received, 100% packet loss, time Oms ** Begin Test ** ('Your deault gateway is ', '10.150.101.254') ('Connection to deafult gateway', 'is SUCCESSFUL ') Remote connection is SUCCESSFUL ! DNS reolution is SUCCESSFUL ! ** Test Compelete ** (student@localhost Desktop]$ 1 File Edit View Search Terminal Help *** Beginning Test *** Your default gateway is 192.168.10.254. Connection to default gateway is SUCCESSFUL! Remote Connection SUCCEDED! DNS resolution SUCCEDED! *** Test Complete. *** [student@webserver Desktop]$ 1 Jsage: ping [-AbBdDfhLnOqrRUVV64] [-C count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-5 packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-W deadline] [-W timeout] [hopl ...] destination Jsage: ping -6 [-aAbBdDfhlnoqrRUVV] [-C count] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc option] [-N nodeinfo_option] [-p pattern] [-Q tclass] [-5 packetsize] [-5 sndbuf] [-t ttl] [-T timestamp_option] [-W deadline] [-W timeout] destination PING supremenewyork.com (52.68.255.144) 56(84) bytes of data. --- supremenewyork.com ping statistics --- 1 packets transmitted, o received, 100% packet loss, time Oms

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!