flandre/test/legacy/tcp.py

7 lines
225 B
Python
Raw Normal View History

2025-01-19 18:27:26 +08:00
import subprocess
if __name__ == '__main__':
2025-01-20 13:03:02 +08:00
code = subprocess.run(['curl', '-m', '1', 'http://11.6.1.66:5556'], stderr=subprocess.DEVNULL,
2025-01-19 18:27:26 +08:00
stdout=subprocess.DEVNULL).returncode
2025-01-20 13:03:02 +08:00
print(code)