Fabric is a Python (2.5 or higher) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
一个简单的例子
>>> from fabric.api import run, env, cd, settings, hide, show
>>> env.host_string='xxx.xxx.com'
>>> env.user='user'
>>> env.password='password'
>>> run('ls -lart')
Fabric是个不错的选择。在主页上
一个简单的例子
在阅读了您对第一个答案的评论之后,您可能需要创建一个bash脚本,其中bash path作为解释器行,然后是autosys命令。在
这将创建一个bashshell并从shell中的脚本运行命令。在
如果用户在autosys环境中再次运行autosys命令,最好在autosys命令之前使用autosys命令。在
相关问题 更多 >
编程相关推荐