Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!samsung!uunet!mcsun!ukc!newcastle.ac.uk!turing!csoc From: csoc@turing.newcastle.ac.uk (Computer Society) Newsgroups: comp.sys.atari.st Subject: Re : I/O Redirection Summary: Yes it can be done Keywords: Fopen Fforce Pexec Fforce Fclose Message-ID: <1989Nov13.234448.7780@newcastle.ac.uk> Date: 13 Nov 89 23:44:48 GMT Sender: Computer Society (Steve Foster, President) Distribution: comp.sys.atari.st Organization: Computing Laboratory, U of Newcastle upon Tyne, UK NE17RU Lines: 19 It should be done something like this :- handle = Fopen/Fcreate ("filename", WRITE) Obvious Fforce (1, handle) Ditto Pexec (kiddy) Call child Fforce (1,1) Reset stdout Fclose (handle) Close file Hope this solves the problem. I think there might be a more elegant way of resetting stdout, though. However, Fforce does the job. +--------------------------------------------------------------------+ | The University Of Newcastle-Upon-Tyne Computer Society | | EMAIL: csoc@uk.ac.newcastle | +--------------------------------------------------------------------+