Run command in bash:

func runExternalCmd(commandToRun string) {
	fmt.Println(curTime()+"running command:", commandToRun)
	cmd := exec.Command("bash", "-c", commandToRun)
	err := cmd.Start()
	if err != nil {
		fmt.Println(err)
		log.Fatal(curTime() + "Cannot start external program")
	}
	fmt.Println(curTime() + "Waiting for command to finish...")
	err = cmd.Wait()
	if err != nil {
		fmt.Println(err)
		log.Fatal(curTime()+"Command finished with error: ", err)
	}

}