title: What does execve() do?
body: <p>What exactly does execve() do?  I've tried looking at the documentation (http://linux.die.net/man/2/execve) but given that I'm very new to linux and this sort of programming it doesn't make a lot of sense.  What I want to do is be able to execute this command: </p>
  
  <pre><code>nc -l -p someport -e /bin/sh
  </code></pre>
  
  <p>Can I do something like the following (where someport is a number such as 4444)</p>
  
  <pre><code>char *command[2];
  command[0] = "nc -l -p someport -e /bin/sh"
  execve(command[0], name, NULL);
  </code></pre>