🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #32566

Redirection

#32566
From: Leo de Wit
Date: Tue, 17 May 1988 09:56
14 lines
1261 bytes
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. ( <problem >solution).
Technical Details
Message-ID: <483@philmds.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!philmds!leo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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