Search:

Type: Posts; User: Scriptonaut

Search: Search took 0.01 seconds.

  1. Ha, you're right, I didn't. I didn't copy paste...

    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...
  2. I should also add, waiting on all the zombies...

    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...
  3. I figured it out finally, I read your comment and...

    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 =...
  4. That actually seems fairly close to what I'm...

    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...
  5. Unix Minishell Need Help Adding Pipelines

    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
  6. Alright, well the next part of this current...

    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...
  7. I'm actually writing in the child process(I'm not...

    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...
  8. Piping, Forking, and Gathering execvp's Output

    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:
Results 1 to 8 of 8