Index: trunk/absroot/source/abspy/bin/client3.py =================================================================== diff --git a/trunk/absroot/source/abspy/bin/client3.py b/trunk/absroot/source/abspy/bin/client3.py --- a/trunk/absroot/source/abspy/bin/client3.py (revision 233) +++ b/trunk/absroot/source/abspy/bin/client3.py (revision 234) @@ -45,7 +45,7 @@ answer = self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) return answer - def readFile(self, filename): + def readFile(self): data = "optional" file = self.__ConnectionWithCentralControl(cmd = "GETF", data = data) Index: trunk/absroot/source/abspy/bin/server3.py =================================================================== diff --git a/trunk/absroot/source/abspy/bin/server3.py b/trunk/absroot/source/abspy/bin/server3.py --- a/trunk/absroot/source/abspy/bin/server3.py (revision 233) +++ b/trunk/absroot/source/abspy/bin/server3.py (revision 234) @@ -238,7 +238,9 @@ file = self.__ConnectionWithControlModules(rx_buffer,cmd,id) del self.rxFile[id-1] - self.rxFile.insert(id-1, file) + self.rxFile.insert(id-1, file) + + return self.rxFile def __changeBeam(self, cmd, rx_buffer): Index: trunk/absroot/source/abspy/scripts/readFile.py =================================================================== diff --git a/trunk/absroot/source/abspy/scripts/readFile.py b/trunk/absroot/source/abspy/scripts/readFile.py --- a/trunk/absroot/source/abspy/scripts/readFile.py (revision 233) +++ b/trunk/absroot/source/abspy/scripts/readFile.py (revision 234) @@ -11,14 +11,9 @@ def __init__(self): self.output = "" - def execute(self, filename): - if os.path.exists(filename): - #absObj = ABSClient(ipDestino="10.10.10.97") - absObj = ABSClient(ipDestino="10.10.20.27") - self.output = absObj.readFile(filename) - #pass - else: - print "No file" + def execute(self): + absObj = ABSClient(ipDestino="10.10.20.27") + self.output = absObj.readFile() def getOutput(self): return self.output @@ -27,13 +22,7 @@ if __name__ == '__main__': - parser = optparse.OptionParser(usage=usage) - - parser.add_option("-f", "--filename", dest="filename", type="string", default="", help="Filename") + app = readFile() + app.execute() - (options, args) = parser.parse_args() - - filename = options.filename - - app = readFile() - app.execute(filename) + print app.output