@@ -1,35 +1,35 | |||
|
1 | 1 | import optparse, os, sys |
|
2 | 2 | |
|
3 | 3 | pathFile = os.path.dirname(os.path.abspath(__file__)) |
|
4 | 4 | sys.path.append(os.path.split(pathFile)[0]) |
|
5 | 5 | |
|
6 | 6 | from bin.client3 import ABSClient |
|
7 | 7 | |
|
8 | 8 | class changeBeam(object): |
|
9 | 9 | |
|
10 | 10 | def __init__(self): |
|
11 | 11 | self.output = "" |
|
12 | 12 | |
|
13 | 13 | def execute(self, beam="0"): |
|
14 | 14 | #absObj = ABSClient(ipDestino="10.10.10.97") |
|
15 |
absObj = ABSClient(ipDestino="10.10.20.2 |
|
|
15 | absObj = ABSClient(ipDestino="10.10.20.27") | |
|
16 | 16 | self.output = absObj.changeBeam(beam) |
|
17 | 17 | |
|
18 | 18 | def getOutput(self): |
|
19 | 19 | return self.output |
|
20 | 20 | |
|
21 | 21 | |
|
22 | 22 | usage = "::::::::::::\n" |
|
23 | 23 | |
|
24 | 24 | if __name__ == '__main__': |
|
25 | 25 | |
|
26 | 26 | parser = optparse.OptionParser(usage=usage) |
|
27 | 27 | |
|
28 | 28 | parser.add_option("-n", "--beam", dest="pattern", type="string", default="0", help="Number of Pattern") |
|
29 | 29 | |
|
30 | 30 | (options, args) = parser.parse_args() |
|
31 | 31 | |
|
32 | 32 | beam = options.pattern |
|
33 | 33 | |
|
34 | 34 | app = changeBeam() |
|
35 | 35 | app.execute(beam) |
General Comments 0
You need to be logged in to leave comments.
Login now