def do_exec(self, filename):
if not filename:<EOL><INDENT>Console.error("<STR_LIT>")<EOL>return<EOL><DEDENT>if os.path.exists(filename):<EOL><INDENT>with open(filename, "<STR_LIT:r>") as f:<EOL><INDENT>for line in f:<EOL><INDENT>Console.ok("<STR_LIT>".format(str(line)))<EOL>self.onecmd(line)<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>Console.error('<STR_LIT>'.format(filename))<EOL>sys.exit()<EOL><DEDENT>
::

    Usage:
       exec FILENAME

    executes the commands in the file. See also the script command.

    Arguments:
      FILENAME   The name of the file