Mulitple I/O streams

This is a discussion on Mulitple I/O streams within the C Programming forums, part of the General Programming Boards category; I am writing a UNIX shell and I'm having some problems writing the scripting component.... acts just like the POSIX ...

  1. #1
    thamisfit
    Guest

    Mulitple I/O streams

    I am writing a UNIX shell and I'm having some problems writing the scripting component.... acts just like the POSIX script command. Ok, so here's my question is it possible to, say, create a new process that uses multiple I/O streams. What I need is one stream to output to the console and another stream to output the same to a file. Is this possible?... or should I create one process and redirect its output to the file, then create the same again process and output to the console?... any thoughts?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    What OS?

    gg

  3. #3
    thamisfit
    Guest
    At home i'm using Red Hat 8.0... but the target system is IRIX 6

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    1
    Yea... tee will work just fine. Thx for the info

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. why page based I/O can improve performance?
    By George2 in forum C Programming
    Replies: 1
    Last Post: 06-12-2006, 07:42 AM
  2. I/O streams
    By scottmanc in forum C++ Programming
    Replies: 16
    Last Post: 02-08-2003, 09:16 PM
  3. Cant comprehend C++ I/O and streams.
    By Panopticon in forum C++ Programming
    Replies: 2
    Last Post: 01-09-2003, 06:21 PM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 04:14 PM
  5. Dealing with i/o streams in a class
    By ender in forum C++ Programming
    Replies: 3
    Last Post: 03-22-2002, 04:26 PM

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