def run
      pipe = IO.popen(@cmd + " 2>&1")
      @pid = pipe.pid
      begin
        @output = pipe.readlines
        pipe.close
        @exitstatus = $?.exitstatus
      rescue => e
        @exception = e
      end
    end
def run
      pipe = IO.popen(@cmd + " 2>&1")
      @pid = pipe.pid
      begin
        @output = pipe.readlines
        pipe.close
        @exitstatus = $?.exitstatus
      rescue => e
        @exception = e
      end
    end
run the cmd