Mac osx系统下python自动登录服务器,osxpython,Mac osx系统下py


Mac osx系统下python自动登录服务器

Mac osx系统下python自动登录服务器代码片段

1.[代码]自动登录

mport oss = """osascript <<EODtell 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 tellend tellEOD"""os.system(s)

编橙之家文章,

评论关闭