用户登录
用户注册

分享至

osx下用python自动登录服务器(iterm2)

  • 作者: 西平屠夫
  • 来源: 51数据库
  • 2022-08-12
mport os
s = """osascript <<EOD
tell application "iterm"
    activate
    set myterm to (make new terminal)
    tell myterm
        launch session "Default Session"
        tell the last session
            write text "ssh user@ip"
            delay 3
            write text "password"
         end tell
    end tell
end tell
EOD"""
os.system(s)
软件
前端设计
程序设计
Java相关