[comp.sys.atari.st] Redirection

leo@philmds.UUCP (Leo de Wit) (05/17/88)

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).

greg.trice@canremote.uucp (GREG TRICE) (03/14/90)

How can I redirect the output of a program that normally outputs to a 
printer to a file instead? (the EPSME.PRG print utility with Dr T's 
Copyist). I'm using a 1040ST.
---
 * Via ProDoor 3.1R 

randyh@hpsad.HP.COM (Randy Hosler) (03/14/90)

There is a program called BARREL that will do this.  I think it can be ftp'd
from terminator.cc.umich.edu  ( 35.1.33.8 ).  The name of the file is called
appropriately, barrel.arc. 

Randy Hosler