Files
kapow/test/runwindowsrun.go
Roberto Abdelkader Martínez Pérez 0c16b5472f 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>
2020-12-24 14:03:25 +01:00

20 lines
262 B
Go

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)
}
}