'Run a script'

def do_script(self, input):

    inputList = input.strip().split()
    if (len(inputList) == 0):
        self.help_script()
    else:
        try:
            self.scripting(True)
            try:
                script = [line.strip() for line in open(inputList[0]).readlines() if (not line.startswith('#'))]
            except IOError:
                raise exception.CmdErr, "Couldn't    read    script    file"
            self.runcmdlist_noex(script)
        except exception.CmdErr as err:
            self.io.print_error(err.getErr())
            self.io.print_error('Aborting    script')
        finally:
            self.scripting(False)
