我正在尝试这样一个非常基本的结构代码:
from fabric.api import run, task
@task
def test():
run("find /tmp -type f")
然而,输出会永远这样:
[root@e059fb ]# fab test -i tej.pem -H tej@10.90.242.76
[tej@10.90.242.76] Executing task 'test'
[tej@10.90.242.76] run: find /tmp -type f
[tej@10.90.242.76] out: /tmp/qwer.pid
[tej@10.90.242.76] out: /tmp/install.pid
[tej@10.90.242.76] out: /tmp/xxxx
[tej@10.90.242.76] out: /tmp/pki_data1381109216648547511.tmp
[tej@10.90.242.76] out: /tmp/component_event.xlf5716431074152235003.jar
[tej@10.90.242.76] out: /tmp/MIME3880781677960930334.tmp
[tej@10.90.242.76] out: /tmp/component_event.xlf2448949157221874062.jar
[tej@10.90.242.76] out: /tmp/pki_data4307187884067858048.tmp
[tej@10.90.242.76] out: /tmp/MIME492598143052197490.tmp
[tej@10.90.242.76] out: /tmp/component_event.xlf6922738826235471484.jar
[tej@10.90.242.76] out: /tmp/xxxxx
[tej@10.90.242.76] out: /tmp/component_event.xlf5514972543465832532.jar
[tej@10.90.242.76] out: /tmp/MIME7456325891227527672.tmp
[tej@10.90.242.76] out: /tmp/component_event.xlf7878309880872461565.jar
[tej@10.90.242.76] out:
有什么问题吗?你知道吗
看起来这个用户和虚拟机有一些与pty相关的配置错误。 即使是我也无法从SSH-t和-t运行命令。它们都挂断了。你知道吗
在另一台机器上,我可以通过,工作正常。你知道吗
相关问题 更多 >
编程相关推荐