code: func (a *Agent) remoteExecWriteOutput(event *remoteExecEvent, num int, output []byte) bool {
  	suffix := path.Join(remoteExecOutputDivider, fmt.Sprintf("%05x", num))
  	if err := a.remoteExecWriteKey(event, suffix, output); err != nil {
  		a.logger.Printf("[ERR] agent: failed to write output for remote exec job: %v", err)
  		return false
  	}
  	return true
  }
docs: // remoteExecWriteOutput is used to write output