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
goisn't in the PATH. You either add it to the PATH, or us a full path.export GOROOT=/usr/local/go/bin/goabove the first export? Just tried that and it doesn't work./usr/local/go/binisn't in your path, you need to add it to your PATH, or use/usr/local/go/bin/go run