# File lib/rubyipmi/commands/basecommand.rb, line 99
    def run(debug=false)
      setpass
      @result = nil
      command = makecommand
      if debug
        return command
      end

      @lastcall = "#{command}"
      @result = `#{command} 2>&1`
      removepass
      #puts "Last Call: #{@lastcall}"

      # sometimes the command tool doesnt return the correct result
      process_status = validate_status($?)

      if not process_status
        throwError
      end
      return process_status
    end