output as input

This is a discussion on output as input within the Linux Programming forums, part of the Platform Specific Boards category; Is there a way to read output from a currently running program as input to another program in C? If ...

  1. #1
    DDC
    Guest

    Unhappy output as input

    Is there a way to read output from a currently running program as input to another program in C?
    If so, please offer some information on this.

  2. #2
    DDC
    Guest

    Unhappy

    I am using UNIX IRIX 6.5.

  3. #3
    DDC
    Guest

    Smile

    I will try this, Thank you.
    I will let you know.

  4. #4
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    Is the two programs are independant, you can use the pipe |
    ex:
    Code:
    prog1 | prog2
    In which case, the output of the program 'prog1' will be sent (piped) to the program 'prog2'

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Weird read input or bad printf output?
    By ChaoticMachiner in forum C Programming
    Replies: 3
    Last Post: 05-04-2008, 04:40 PM
  2. Input and Output files
    By matrixhelp in forum C Programming
    Replies: 1
    Last Post: 03-10-2008, 03:07 AM
  3. Replies: 5
    Last Post: 02-25-2008, 06:35 AM
  4. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 04:42 PM
  5. Input / Output help (arrays)
    By fp123 in forum C++ Programming
    Replies: 1
    Last Post: 01-15-2006, 12:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21