title: Redirect md5sum to a file using execvp?
body: <p>i need to get the checksum of a file using md5sum, inside a C project.</p>
  
  <p>I can't use the openssl library because it isn´t installed, and i can't install it, because it's the university server that i'm working on.</p>
  
  <p>Also i have some requirements, and i can not use system(), which would be very simple to just: system("md5sum fileName > testFile");</p>
  
  <p>They also don't allow me to use popen();</p>
  
  <p>Im trying to make it work using execvp, but it's not actually working, and i don't know if i can actually work.</p>
  
  <p>The test file that im actually using is this:</p>
  
  <pre><code>  int main(){
  
        char *const args[] = {"md5sum","file"," &gt; ","test", NULL};                                                                                                                                             
  
        execvp(args[0],args);  
  
        return 0;
    }
  </code></pre>
  
  <p>When i open the file "test" nothing is writed there,</p>
  
  <p>Any clue on how to do it, or why it isn't working??</p>
  
  <p>Thanks in advance.</p>