'Runs command from rule for passed command.
:type old_cmd: Command'

def run(self, old_cmd):

    if self.side_effect:
        self.side_effect(old_cmd, self.script)
    if settings.alter_history:
        shell.put_to_history(self.script)
    logs.debug(u'PYTHONIOENCODING:    {}'.format(os.environ.get('PYTHONIOENCODING', '!!not-set!!')))
    print self._get_script()
