mail_attachment.go 365 B

12345678910111213141516171819
  1. package services
  2. import (
  3. "context"
  4. "eta/eta_data_analysis/utils"
  5. "fmt"
  6. "os/exec"
  7. )
  8. func MailAttachment(context.Context) (err error) {
  9. cmd := exec.Command(utils.CoalMailAttachmentPythonVersion, utils.CoalMailAttachmentScriptPath)
  10. outputByte, err := cmd.Output()
  11. fmt.Println("start")
  12. if err != nil {
  13. return
  14. }
  15. fmt.Println(string(outputByte))
  16. return
  17. }