flandre/test/tcp.py
2025-01-20 13:03:02 +08:00

7 lines
225 B
Python

import subprocess
if __name__ == '__main__':
code = subprocess.run(['curl', '-m', '1', 'http://11.6.1.66:5556'], stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL).returncode
print(code)