完善
This commit is contained in:
parent
395280a363
commit
389bbad65f
@ -38,14 +38,6 @@ func SendMail(subject string, content string, files ...string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command(cm, v...)
|
cmd := exec.Command(cm, v...)
|
||||||
file, err := os.OpenFile("run.sh", os.O_CREATE|os.O_APPEND, 0755)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
_, err = file.WriteString(cmd.String())
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
log.Println(string(output))
|
log.Println(string(output))
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user