python 学习记录

来源:互联网 发布:acitiviti数据库表名 编辑:程序博客网 时间:2024/05/08 14:43

subprocess 模块

用popen 执行ssh 命令 notice that if the command contains awk ,please use ssh " " not sigal quote

After SSH, there will be a new process in remote node. If it can't finish ,it always there, and feed back things ,you should kill it.

When you create a command string,it's important that every word in this string should not contain "\n" except the last one. Or it may cause you command failed.

0 0
原创粉丝点击