Thanks guys. You both helped me finish this. KC, you showed me how to finish my execlp command. MK27 you just helped me focus and get away from the other crap. Everyone else, sorry I wasn't...
Type: Posts; User: hambergler
Thanks guys. You both helped me finish this. KC, you showed me how to finish my execlp command. MK27 you just helped me focus and get away from the other crap. Everyone else, sorry I wasn't...
This is for a project. I'm learning to close a "line" like stdout or stdin and open another file to connect to the closed line. Thus the fork and the previous execlp. I'm just having trouble with...
Ok I changed it a bit, but now I'm having trouble getting the file name into the system call... here's what I did:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (int...
I just need a little help... my program is pretty simple; it uses execlp to read a file, sort it, put the output into a different file, then close the original file. I've gotten this to work but it...