fix(task/cron): use the correct pointer to build structure

feat(init): included enviroment variable and working directory
test(cron): wip
This commit is contained in:
2024-03-29 11:30:36 +00:00
parent f2bfd6e60b
commit 3bdca8c540
8 changed files with 85 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ func main() {
t = time.NewTicker(time.Second * 5)
for {
cmd = exec.Command(exePath)
cmd = exec.Command(exePath, "--", "wmdummy")
if err = cmd.Run(); err != nil {
log.Printf("failed to run %s: %+v\n", exePath, err)
} else {