If you do want to find the processor architecture, instead of shelling out, 
can you use runtime.GOARCH? See 
https://golang.org/pkg/runtime/#pkg-constants -- it has a value like 
"amd64", similar to PROCESSOR_ARCHITECTURE on Windows. It also works on 
different platforms/OSes.

On Thursday, September 17, 2015 at 2:16:06 PM UTC+12 Th3x0d3r wrote:

> What I'm trying to do is:
>
> out, err := exec.Command("echo","%PROCESSOR_ARCHITECTURE%").Output()
>
> but same result:
>
> *exec: "echo": executable file not found in %PATH%*
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c8873199-57e1-47b0-9b2b-7c9c49af8288n%40googlegroups.com.

Reply via email to