Skip to content

Instantly share code, notes, and snippets.

@gperrudin
Created July 8, 2015 10:13
Show Gist options
  • Save gperrudin/e2b0bf09622dea09647d to your computer and use it in GitHub Desktop.
Save gperrudin/e2b0bf09622dea09647d to your computer and use it in GitHub Desktop.
Running shell scripts from Golang
cmdStr := "thumbnail.sh " + url
cmd := exec.Command("/bin/sh", "-c", cmdStr)
_, err := cmd.Output()
if err != nil {
println(err.Error())
return
}
@faddat
Copy link

faddat commented May 18, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment