def do_output(self, args):
        """
           output to <file name>
           enter 'output' without <file name> to close file
        """
        global _FD, _OUTPUT
        if args:
            _OUTPUT = args
            _FD = open(_OUTPUT,'a')
        else:
            _FD.close()
            _FD=_OUTPUT = None

           output to <file name>
           enter 'output' without <file name> to close file
        
recipes/Python/578490_sql_the_SQLPlus_killer/recipe-578490.py