aboutsummaryrefslogtreecommitdiff
path: root/steuermann/rexec.py
diff options
context:
space:
mode:
authorsienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-03-07 12:23:44 -0500
committersienkiew <sienkiew@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-03-07 12:23:44 -0500
commitde5f2c42f5100c113106e660315a50434e383e7e (patch)
treea7d9d329e50ba0c37ff58465f9236fa35b21fbd3 /steuermann/rexec.py
parent47fbf94c8d47fdfb83364fd4f5c6732ecc78ccd6 (diff)
downloadsteuermann-de5f2c42f5100c113106e660315a50434e383e7e.tar.gz
checkpoint
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@561 d34015c8-bcbb-4646-8ac8-8ba5febf221d
Diffstat (limited to 'steuermann/rexec.py')
-rw-r--r--steuermann/rexec.py6
1 files changed, 5 insertions, 1 deletions
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) :