def submitNextCommand(self):
    '\n        Submit the next command from the command list to the command pipe,\n        or shutdown if there are no more commands to submit.\n        '
    try:
        cmndstr = str(self.__cmndlist[self.__nextcmnd])
        if (len(cmndstr) > 188):
            cmndstr = (cmndstr[:188] + '...')
        print(('Command: %s' % cmndstr))
        self.__cmndpipe.send(self.__cmndlist[self.__nextcmnd])
        self.__nextcmnd += 1
        while self.__rspdpipe.poll(0.1):
            print(('Response: %s' % str(self.__rspdpipe.recv())))
    except IndexError:
        self.__rspdpipe.close()
        self.__cmndpipe.close()
        self.close()
Submit the next command from the command list to the command pipe,
or shutdown if there are no more commands to submit.
def submitNextCommand(self):
    '\n        Submit the next command from the command list to the command pipe,\n        or shutdown if there are no more commands to submit.\n        '
    try:
        cmndstr = str(self.__cmndlist[self.__nextcmnd])
        if (len(cmndstr) > 188):
            cmndstr = (cmndstr[:188] + '...')
        print(('Command: %s' % cmndstr))
        self.__cmndpipe.send(self.__cmndlist[self.__nextcmnd])
        self.__nextcmnd += 1
        while self.__rspdpipe.poll(0.1):
            print(('Response: %s' % str(self.__rspdpipe.recv())))
    except IndexError:
        self.__rspdpipe.close()
        self.__cmndpipe.close()
        self.close()