Path: utzoo!attcan!uunet!mcvax!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.sys.atari.st Subject: Redirection Keywords: Redirection, Fdup, Fforce Message-ID: <483@philmds.UUCP> Date: 17 May 88 09:56:15 GMT Reply-To: leo@philmds.UUCP (L.J.M. de Wit) Organization: Philips I&E DTS Eindhoven Lines: 14 Has anybody of you had any experience with redirection? I'm trying to start up a child process from a parent that has redirected input and/or output file descriptors. After much fiddling with Fdup, Fclose, Fopen and Fforce I managed to get the parent opened a file and the child writing to its stdout being this file (using Cconws, or gemdos 0x9). However, when I used the standard library routines coming with my compiler (Lattice-C that is), such as puts() and printf() the child is bombed (Bus Error). Who knows the correct way to achieve redirection (that is, going from parent to child process, I know how to use Fforce for in-process redirection) ? Please answer by e-mail; if there are others also interested in a solution you can mail to me too; I will forward the results to this group if there's enough response. Maybe I have to figure out things myself after all ... Leo. ( solution).