Loading crossbow/crossbowOlcf.py +2 −2 Original line number Diff line number Diff line Loading @@ -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() Loading @@ -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__": Loading crossbow/test.py +1 −2 Original line number Diff line number Diff line import sys sys.stdout.write("hello world") print "hello world" Loading
crossbow/crossbowOlcf.py +2 −2 Original line number Diff line number Diff line Loading @@ -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() Loading @@ -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__": Loading
crossbow/test.py +1 −2 Original line number Diff line number Diff line import sys sys.stdout.write("hello world") print "hello world"