From de5f2c42f5100c113106e660315a50434e383e7e Mon Sep 17 00:00:00 2001 From: sienkiew Date: Wed, 7 Mar 2012 17:23:44 +0000 Subject: checkpoint git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@561 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/rexec.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'steuermann/rexec.py') diff --git a/steuermann/rexec.py b/steuermann/rexec.py index 30e58dc..43aba01 100644 --- a/steuermann/rexec.py +++ b/steuermann/rexec.py @@ -43,7 +43,11 @@ def run( host, cmd, password, directory ): print "HTTP ERROR",e.code print e.read() return 1 - print f.read() + while 1 : + s = f.read(2048) + if s == '' : + break + sys.stdout.write(s) return 0 def upload( host, filename, password, directory) : -- cgit