##// END OF EJS Templates
imanay -
r222:223
parent child
Show More
@@ -11,7 +11,8
11 self.output = ""
11 self.output = ""
12
12
13 def execute(self, beam="0"):
13 def execute(self, beam="0"):
14 absObj = ABSClient(ipDestino="10.10.10.97")
14 #absObj = ABSClient(ipDestino="10.10.10.97")
15 absObj = ABSClient(ipDestino="10.10.20.26")
15 self.output = absObj.changeBeam(beam)
16 self.output = absObj.changeBeam(beam)
16
17
17 def getOutput(self):
18 def getOutput(self):
@@ -31,4 +32,4
31 beam = options.pattern
32 beam = options.pattern
32
33
33 app = changeBeam()
34 app = changeBeam()
34 app.execute(beam) No newline at end of file
35 app.execute(beam)
@@ -2,11 +2,12
2 from client3 import *
2 from client3 import *
3 import sys
3 import sys
4
4
5 absObj = ABSClient(ipDestino="10.10.10.97")
5 #absObj = ABSClient(ipDestino="10.10.10.97")
6 absObj = ABSClient(ipDestino="10.10.20.26")
6 #absObj = ABSClient()
7 #absObj = ABSClient()
7 if len(sys.argv) == 2:
8 if len(sys.argv) == 2:
8 # ns = "4"
9 # ns = "4"
9 ns = sys.argv[1]
10 ns = sys.argv[1]
10 absObj.getControlModuleStatus(ns)
11 absObj.getControlModuleStatus(ns)
11 else:
12 else:
12 print "Only one argument needed." No newline at end of file
13 print "Only one argument needed."
@@ -13,7 +13,8
13
13
14 def execute(self, filename):
14 def execute(self, filename):
15 if os.path.exists(filename):
15 if os.path.exists(filename):
16 absObj = ABSClient(ipDestino="10.10.10.97")
16 #absObj = ABSClient(ipDestino="10.10.10.97")
17 absObj = ABSClient(ipDestino="10.10.20.26")
17 self.output = absObj.sendFile(filename)
18 self.output = absObj.sendFile(filename)
18 #pass
19 #pass
19 else:
20 else:
@@ -35,4 +36,4
35 filename = options.filename
36 filename = options.filename
36
37
37 app = sendFile()
38 app = sendFile()
38 app.execute(filename) No newline at end of file
39 app.execute(filename)
General Comments 0
You need to be logged in to leave comments. Login now