feat: run multiple init programs

- We log their outputs and status codes
- Windows is supported as well, leveraging cmd.exe /c

Co-authored-by: pancho horrillo <pancho.horrillo@bbva.com>
This commit is contained in:
Roberto Abdelkader Martínez Pérez
2020-12-23 12:40:04 +01:00
committed by pancho horrillo
parent 989bf2ed66
commit 0c16b5472f
4 changed files with 84 additions and 18 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"fmt"
"os"
"os/exec"
)
func main() {
cmd := exec.Command("rundll32.exe", "url.dll,FileProtocolHandler", os.Args[1])
err := cmd.Start()
if err != nil {
fmt.Println(err)
}
err = cmd.Wait()
if err != nil {
fmt.Println(err)
}
}