摘要:
目的:需要ssh链接到Linux主机,执行telnet 命令,抓回显匹配制定内容。 ssh.exec_command(cmd,bufsize,timeout) #exec_command参数使用只需要执行一次的命令,因为执行完该命令以后,shell会自动回到ssh初始连接的shell状态下 ssh. 阅读全文
posted @ 2023-08-14 19:08
可乐芬达
阅读(2986)
评论(0)
推荐(0)
摘要:
``` # -*- coding: utf-8 -*- import shlex import os import signal import time import threading from subprocess import Popen, PIPE def run_command(comma 阅读全文
posted @ 2023-08-14 18:46
可乐芬达
阅读(4337)
评论(0)
推荐(0)

浙公网安备 33010602011771号