title: System() call from a cgi script
body: <p>For my assignment, I have a cgi script (C program) and a program that I want to call from the script using system(). Both in cgi-bin/ and chmodded to 755. I know that the system call I make in my cgi program is valid (the path is correct, the command is correct...) yet the call always fails. I checked the working directory during the execution of the cgi-script and it is correct. If I run the same call in bash it works, but in my menu program it doesn't work.</p>
  
  <p>It's strange since the system call was working when I ran the server on my computer (using python -m CGIHTTPServer), but when I placed the website on my university's server which is where it has to be, everything works except for the system() call. So it seems like it has something to do with permissions.</p>
  
  <p>Here's the call in question, if it's any help:</p>
  
  <pre><code>    sprintf(systemCall, "passweb -add %s", username);
      exitStatus = system(systemCall); //always 1
  </code></pre>