Oct-13-2016, 03:10 PM
Test internet connection
Test internet connection
|
(Oct-13-2016, 02:54 PM)micseydel Wrote: I ping 8.8.8.8, since it's a DNS server and tends to be very reliable. 2001:4860:4860::8888 is the same machine. (Oct-13-2016, 03:10 PM)wavic Wrote:(Oct-13-2016, 02:54 PM)micseydel Wrote: I ping 8.8.8.8, since it's a DNS server and tends to be very reliable. another way is with subprocess.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Oct-14-2016, 02:18 AM
(Oct-13-2016, 11:40 PM)Skaperen Wrote:I don't like to use subprocess.(Oct-13-2016, 02:54 PM)micseydel Wrote: I ping 8.8.8.8, since it's a DNS server and tends to be very reliable.
Oct-14-2016, 03:08 AM
(Oct-14-2016, 02:18 AM)wavic Wrote: I don't like to use subprocess.is there some knowledge base around this that i do not have?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Oct-14-2016, 03:14 PM
(Oct-14-2016, 03:08 AM)Skaperen Wrote:Yes subprocess is top secret stuff :silenced:(Oct-14-2016, 02:18 AM)wavic Wrote: I don't like to use subprocess.is there some knowledge base around this that i do not have? import subprocess website = "google.com" ping = subprocess.Popen(["ping", website], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, error = ping.communicate() print(out.decode('utf-8'))
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
tkinter - Random Quote from internet | menator01 | 0 | 1,536 |
Apr-02-2024, 07:44 PM Last Post: menator01 |
Users browsing this thread: 1 Guest(s)