Search:

Type: Posts; User: cbgb

Search: Search took 0.00 seconds.

  1. Much obliged!

    Thanks for helping me!
  2. Generating one of three different numbers randomly

    Hi. I read the faq on random number generation, but I would like to be able to generate one of three different numbers (only) in a random sequence.

    In other words, I have three "levels": 15, 25,...
  3. Replies
    5
    Views
    12,190

    Thanks for replying

    Thanks for your response.

    If I do not pass the pipe array to the functions, should I use scanf to read stdin (which has now been overridden by the pipe)? When I tried to do this the screen hangs,...
  4. Replies
    5
    Views
    12,190

    Sure. Here it is...

    Thanks for taking a look at it. I am only posting the relevant sections.




    ...

    /****************************/
    /* Global variables and constants: */
    /****************************/
  5. Replies
    5
    Views
    12,190

    Clearing a pipe used in IPC

    Hi. I am using the fork() and pipe() functions to establish communication between 2 processes. If one process writes to the pipe, and the second process reads the pipe, how does the second process...
  6. Replies
    8
    Views
    8,414

    Thanks for replying

    Thanks for the reply... Actually, the execve seems to be working fine. My question is more about the use of pipe() between 2 separate programs (BTW ./pgm2.o is an executable). Basically, do I need to...
  7. Replies
    8
    Views
    8,414

    My apologies

    Sorry about that... this is my first post. I still can not find an example, so any help would be appreciated.

    Thanks!
  8. Replies
    8
    Views
    8,414

    IPC between 2 programs using pipe

    Hi. I have been looking through the posts for fork, pipe, dup2, and IPC, but I have not found an answer to my question, so here goes:

    I want to set up a pipe between 2 separate programs using...
Results 1 to 8 of 8