Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site afinitc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!mgnetp!we53!busch!wuphys!wucs!afinitc!msk From: msk@afinitc.UUCP Newsgroups: net.lang.c Subject: Redirect output file descriptor 3 (not just 1 and 2) Message-ID: <569@afinitc.UUCP> Date: Tue, 13-Nov-84 15:10:42 EST Article-I.D.: afinitc.569 Posted: Tue Nov 13 15:10:42 1984 Date-Received: Sun, 18-Nov-84 04:52:47 EST Organization: Affinitec Corp., St. Louis Lines: 18 Please pardon my ignorance, but I would like to know how to set up a C program to do output to a particular file descriptor so that I may redirect the output to a given file. (If no redirection is specified, then of course I can output to a default file) I mean, how can I program the following: program > output 2> error 3> my_file ---------- Please mail me responses and I will report the various options for code fragments to the net. THANKS! -- -- From the terminal of Morris Kahn (...ihnp4!wucs!afinitc!msk) -- Affinitec, Corp., 2252 Welsch Ind. Ct., St. Louis, MO 63146 (314)569-3450