home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6589 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.0 KB  |  28 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!world!mgm
  3. From: mgm@world.std.com (michael g moncur)
  4. Subject: I/O redirection
  5. Message-ID: <C0pEJp.Dt@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. Date: Mon, 11 Jan 1993 19:09:25 GMT
  8. Lines: 18
  9.  
  10. I've been living with "redirection" for some time.  Command shells allow 
  11. you to redirect the output of a command, and even to redirect a device
  12. permanently...
  13.  
  14. Outside of a CLI, and inside of a 'C' program (Mark Williams), how do I
  15. accomplish this?  Specifically, I would like to be able to redirect "con:"
  16. to "aux:" and vice versa, or redirect "aux" to the printer.  
  17.  
  18. Thanks.  I would appreciate any info, and code examples in assembly or
  19. preferably C.  There's a brief mention of it in the Mark Williams C
  20. manual, but it's terribly unclear.
  21.  
  22. Please reply via e-mail, as I don't keep up too well on this newsgroup.  I
  23. will, however, post a summary of replies to this group.
  24.  
  25. -- 
  26. ~`~`michael moncur - mgm@world.std.com / sysop@onlybbs.via.mind.org ~`~`
  27.  
  28.