Thread: Mulitple I/O streams

  1. #1

    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
    What OS?


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

  4. #4
    Registered User
    Join Date
    Mar 2003
    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, 10:16 PM
  3. Cant comprehend C++ I/O and streams.
    By Panopticon in forum C++ Programming
    Replies: 2
    Last Post: 01-09-2003, 07:21 PM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM
  5. Dealing with i/o streams in a class
    By ender in forum C++ Programming
    Replies: 3
    Last Post: 03-22-2002, 05:26 PM