Ha, you're right, I didn't. I didn't copy paste this though, I just typed it out, that's probably why.
I actually have nearly found a solution. I changed the way SIGCHLD is handled by passing it...
Type: Posts; User: Scriptonaut
Ha, you're right, I didn't. I didn't copy paste this though, I just typed it out, that's probably why.
I actually have nearly found a solution. I changed the way SIGCHLD is handled by passing it...
I should also add, waiting on all the zombies doesn't work, either that or I did it wrong. I tried this:
while(waitpid(-1, &status, WNOHANG > 0));
For some reason the only thing that...
I figured it out finally, I read your comment and rewrote it, and then talked to my teacher, and he gave me a few additional tips. Here's what I have not, which seems to work great:
if((pix =...
That actually seems fairly close to what I'm trying to do. I'm iterating through each command separated by pipes, so if I had:
echo a | echo b | echo c | echo d
I would have one loop for...
Hey guys,
So I'm making a UNIX minishell, and am trying to add pipelines, so I can do things like this:
ps aux | grep dh | grep -v grep | cut -c1-5
Alright, well the next part of this current assignment is to add signal handling, so I can start doing that now. I wasn't aware that read may not read it all at once, and I wasn't aware that it may...
I'm actually writing in the child process(I'm not even writing, I'm just dup2(outFD, 1), so that exec automatically writes for me). So here's my dilemma, how do I determine how many characters were...
Hey guys,
I'm building a minishell in C(for unix). I'm doing command expansion, so lets say I have:
echo a $(echo b c)
it works fine, however if I then do this: