def execCmd(self, db):
        self.db = db
        print self.banner
        while True:
            try:
                command = raw_input(self.prompt)
                try:
                    self.execCommand(command)
                except:
                    self.execute(command)
            except __HOLE__:
                break
            except EOFError:
                break
            except Exception, a:
                self.printError(a)
        print ("\r\n\r\nBye!...")
        sys.exit(0)
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/scripts/cpdb.py/console.execCmd