mirror of https://github.com/jumpserver/jumpserver
parent
8ad37c6ce3
commit
3f7f1a8cdb
|
@ -125,7 +125,7 @@ def connect(host, port, user, password):
|
||||||
logfile = open(logfile_name, 'a') # 记录日志文件
|
logfile = open(logfile_name, 'a') # 记录日志文件
|
||||||
logfile.write('\nDateTime:%s' % logtime_start)
|
logfile.write('\nDateTime:%s' % logtime_start)
|
||||||
foo.logfile = logfile
|
foo.logfile = logfile
|
||||||
foo.sendline('')
|
foo.sendline("export PS1='[\u@%s \W]\$ ';clear" % host)
|
||||||
signal.signal(signal.SIGWINCH, sigwinch_passthrough)
|
signal.signal(signal.SIGWINCH, sigwinch_passthrough)
|
||||||
size = getwinsize()
|
size = getwinsize()
|
||||||
foo.setwinsize(size[0], size[1])
|
foo.setwinsize(size[0], size[1])
|
||||||
|
|
Loading…
Reference in New Issue