Commit f57e06aa authored by Gao, Shang's avatar Gao, Shang
Browse files

testing print statement across ssh

parent 43d84660
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ class crossbowOlcf(object):
        #clone crossbow repo        
        ssh_stdin, ssh_stdout, ssh_stderr = \
            self.ssh.exec_command("cd %s; if [ ! -d crossbow ]; \
                                   then git clone https://code.ornl.gov/v33/crossbow.git; cd crossbow;\
                                   then git clone https://code.ornl.gov/v33/crossbow.git;\
                                   else cd crossbow/; git pull; fi" % olcf_path)
        print ssh_stdout.readlines()
        
@@ -48,7 +48,7 @@ class crossbowOlcf(object):
        
        #get tokens
        ssh_stdin, ssh_stdout, ssh_stderr = \
            self.ssh.exec_command("cd crossbow; python test.py")
            self.ssh.exec_command("cd crossbow/crossbow; python test.py")
        print ssh_stdout.readlines()
        
if __name__ == "__main__":
+1 −2
Original line number Diff line number Diff line
import sys
sys.stdout.write("hello world")
print "hello world"