def METHOD_NAME(self,cmd):
    testOutput("exec %s" % cmd.cmdStr)
    simulator = gCommandLineToCommandSimulator.get(cmd.cmdStr)
    if simulator is None:
        (rc,stdoutValue,stderrValue) = (0, [], [])
    else:
        (rc,stdoutValue,stderrValue) = simulator.simulate(cmd.cmdStr)
    self.completed=True
    result = CommandResult(rc,"".join(stdoutValue),"".join(stderrValue), self.completed, self.halt)
    cmd.set_results(result)