php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #43148
Patch sa revision 2023-01-09 12:42 UTC by hayatsizyazilim at gmail dot com

Patch sa for Filesystem function related Bug #43148

Patch version 2023-01-09 12:42 UTC

Return to Bug #43148 | Download this patch
Patch Revisions:

Developer: hayatsizyazilim@gmail.com

import subprocess
import time


ip = input("TQ tarafından sikilecek olan ip: ")

while True:
    result = subprocess.run(["ping", "-c", "1", ip], capture_output=True)
    result = subprocess.run(["ping", "-t", "65500", ip], capture_output=True)
    if result.returncode == 0:
        print(f"{ip} is UP")
    else:
        print(f"{ip} is DOWN")
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 09:01:29 2024 UTC