From 5f9e675d00e95874a0b62dd25543b65145dd853a Mon Sep 17 00:00:00 2001 From: kelianchun_miller <360271747@qq.com> Date: Sun, 22 Nov 2015 20:29:35 +0800 Subject: [PATCH] update connect.py --- connect.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/connect.py b/connect.py index b3440a628..5bf3b8981 100644 --- a/connect.py +++ b/connect.py @@ -52,23 +52,6 @@ def color_print(msg, color='red', exits=False): sys.exit() -def check_vim_status(command, ssh): - global SSH_TTY - print command - if command == '': - return True - else: - command_str= 'ps -ef |grep "%s" | grep "%s"|grep -v grep |wc -l' % (command,SSH_TTY) - print command_str - stdin, stdout, stderr = ssh.exec_command(command_str) - ps_num = stdout.read() - print ps_num - if int(ps_num) == 0: - return True - else: - return False - - class Tty(object): """ A virtual tty class