what exactly are the "wrong" values its printing out. In my experience, when testing reading in input it is helpful to print all the input out, not just a few, so you can watch exactly where...
Type: Posts; User: luro
what exactly are the "wrong" values its printing out. In my experience, when testing reading in input it is helpful to print all the input out, not just a few, so you can watch exactly where...
Thank you so much for your help. My code is now working ( I had a few logic bugs to work out on my own). I do have some general language questions from this if you (or someone else from here)...
Yeah, I was taught that they are the same thing. So, here is some updated code:
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#define WRITE 1
#define...
Hello. I am trying to write a shell program, one that takes in 2 UNIX commands and executes it. the format for input is:
<command> | <command>
My problem is that for some reason, the execv call...