so I am writing a python script that should run constantly in the background and once in a while pings a site to see if my router has failed. Anyway, since it's a python script, I am running it as a pyw file, but no matter what way I try calling the ping command, a window always pops out (even if only for a milisecond). What I've tried so far (and haven't worked):
subprocess.call("ping google.com", stdout = IGNORE, stderr = IGNORE)
subprocess.check_output("ping google.com", stdout = IGNORE, stderr = IGNORE)
os.system("ping google.com")
Thanks!