From 29ffbee34361acc762079c825b5d42749970e7b5 Mon Sep 17 00:00:00 2001 From: HeXiangLong <3234374354@qq.com> Date: Wed, 9 Apr 2025 12:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20main.py=20=E4=B8=AD=E4=B8=BA=20'pin?= =?UTF-8?q?g1'=20=E5=91=BD=E4=BB=A4=E6=B7=BB=E5=8A=A0=E6=94=AF=E6=8C=81?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=A4=9A=E4=BD=99=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index da5d3fd..0716a02 100644 --- a/main.py +++ b/main.py @@ -93,7 +93,7 @@ def pseudo_zsh(): os.execv(sys.executable, ['python3'] + sys.argv) # 重新运行程序 except Exception as e: print(f"Error during update: {e}") - + if args[0] == 'ssh2': subprocess.run(['ssh','admin@10.147.17,160']) continue @@ -101,7 +101,9 @@ def pseudo_zsh(): if args[0] == 'ssh3': subprocess.run(['ssh','root']) continue - + if args[0] == 'ping1': + subprocess.run(['ping','10.147.17.161']) + continue if args[0] == 'sudo': flight1 = Trueddd a = 0