flandre/test/tcp.py

6 lines
207 B
Python
Raw Normal View History

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