csoc@turing.newcastle.ac.uk (Computer Society) (11/14/89)
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 | +--------------------------------------------------------------------+
piet@cs.ruu.nl (Piet van Oostrum) (11/27/89)
In article <1989Nov13.234448.7780@newcastle.ac.uk>, csoc@turing (Computer Society) writes:
`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
This can't be correct...
` Fclose (handle) Close file
--
Piet* van Oostrum, Dept of Computer Science, University of Utrecht
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands.
Telephone: +31-30-531806 Uucp: uunet!mcsun!hp4nl!ruuinf!piet
Telefax: +31-30-513791 Internet: piet@cs.ruu.nl (*`Pete')