I'm trying to run my golang program whenever I log into OSX. I'm trying the following script with Automator:
#!/bin/sh
export GOPATH=/Volumes/DTSE9/worker
go run /Volumes/worker/worker.go
Whenever I run this with Automator, it tells me go: command not found
go
isn't in the PATH. You either add it to the PATH, or us a full path. – Rhododendronexport GOROOT=/usr/local/go/bin/go
above the first export? Just tried that and it doesn't work. – Mayworm/usr/local/go/bin
isn't in your path, you need to add it to your PATH, or use/usr/local/go/bin/go run
– Rhododendron