From 341fe01a245878c3b0c92bf4cfeb49e5f1b3a882 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 8 May 2012 14:50:49 +0200 Subject: [PATCH] Move clear from master dropper to slave dropper --- console/master/dropper | 2 +- console/slave/dropper | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/console/master/dropper b/console/master/dropper index ea29491..57eb2e6 100755 --- a/console/master/dropper +++ b/console/master/dropper @@ -17,7 +17,7 @@ def posix_shell(chan, ctid): tty.setcbreak(sys.stdin.fileno()) chan.settimeout(0.0) - chan.send('%s\r\nclear\r\n' % ctid) + chan.send('%s\r\n' % ctid) while True: r, w, e = select.select([chan, sys.stdin], [], []) diff --git a/console/slave/dropper b/console/slave/dropper index cac4466..49b28a2 100755 --- a/console/slave/dropper +++ b/console/slave/dropper @@ -2,4 +2,5 @@ import sys, subprocess ctid = raw_input() +subprocess.call('clear') subprocess.call(['sudo', 'vzctl', 'enter', ctid])