From e72cb542e1f8686fc29cc4d9b6e968af4b0a5bc1 Mon Sep 17 00:00:00 2001 From: sienkiew Date: Fri, 25 May 2012 14:40:28 +0000 Subject: checkpoint git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@663 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/rexec.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'steuermann/rexec.py') diff --git a/steuermann/rexec.py b/steuermann/rexec.py index 43aba01..013dc94 100644 --- a/steuermann/rexec.py +++ b/steuermann/rexec.py @@ -69,6 +69,7 @@ def upload( host, filename, password, directory) : print e.read() return 1 print f.read() + f.close() return 0 if __name__ == '__main__' : @@ -96,6 +97,7 @@ if __name__ == '__main__' : if opt['-u'] : ex = 0 for x in args : + print "UPLOAD", x ex |= upload(host = host , filename=x, directory=directory, password=password) sys.exit(ex) else : -- cgit