Move clear from master dropper to slave dropper

feature/node-rewrite
Sven Slootweg 13 years ago
parent eebab0b47f
commit 341fe01a24

@ -17,7 +17,7 @@ def posix_shell(chan, ctid):
tty.setcbreak(sys.stdin.fileno()) tty.setcbreak(sys.stdin.fileno())
chan.settimeout(0.0) chan.settimeout(0.0)
chan.send('%s\r\nclear\r\n' % ctid) chan.send('%s\r\n' % ctid)
while True: while True:
r, w, e = select.select([chan, sys.stdin], [], []) r, w, e = select.select([chan, sys.stdin], [], [])

@ -2,4 +2,5 @@
import sys, subprocess import sys, subprocess
ctid = raw_input() ctid = raw_input()
subprocess.call('clear')
subprocess.call(['sudo', 'vzctl', 'enter', ctid]) subprocess.call(['sudo', 'vzctl', 'enter', ctid])

Loading…
Cancel
Save