1
ipconfiger 2013-08-22 18:41:19 +08:00
可以获取结果啊,就是重定向
|
2
dreampuf 2013-08-22 19:35:58 +08:00
|
3
ry_wang 2013-08-23 08:13:42 +08:00 via iPad
|
6
dreampuf 2013-08-23 11:56:08 +08:00
|
10
dreampuf 2013-08-25 11:52:11 +08:00
@pythonee 为什么你不自己试一下?
(g)$:~/fortest$ fab -u XX test:hosts=XXX [tucao.in] Executing task 'test' WARNING: IPython History requires SQLite, your history will not be saved WARNING: IPython History requires SQLite, your history will not be saved --Return-- None > ~/fabfile.py(6)test() 5 def test(): ----> 6 import ipdb; ipdb.set_trace() 7 ipdb> ret = run("ls") [tucao.in] run: ls [tucao.in] out: hub net_status.sh nginx.conf opt sslkey tmp www youtube-dl [tucao.in] out: ipdb> ret 'hub net_status.sh nginx.conf opt sslkey tmp www\tyoutube-dl' ipdb> Exiting Debugger. Disconnecting from XXX... done. |