Executing a command

I want to run a command using golang, that command is
"vcsim -httptest.serve=15.114.–.--:443" how can i do??
Please help

See os/exec.

I checked it… but still i am not able to do…please help

Is the problem that you are not really familiar with Go yet? The tour is a good introduction to get you up to speed.

Hi RITIK_SRIVASTAVA, Maybe you’re referring to a command-line Flags? take a look at this link https://golang.org/pkg/flag/ and for example https://gobyexample.com/command-line-flags

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.