title: How to execute shell command
body: <p>I have some trouble with execute shell commands from a Go program:</p>
  
  <pre><code>  var command = pwd + "/build " + file_name
  
    dateCmd := exec.Command(string(command))
    dateOut, err := dateCmd.Output()
    check(err)
  </code></pre>
  
  <p>If <code>command</code> variable equals a single word like <code>/home/slavik/project/build</code> (build is shell script) it works, but if I try to pass some arg i.e. <code>/home/slavik/project/build xxx</code> or <code>/home/slavik/project/build -v=1</code> the Go program raises an exception like <code>file /home/slavik/project/build not found</code></p>
  
  <p>What's wrong with my code?</p>