Article View: comp.sys.atari.st
Article #5679Re : I/O Redirection
From: Computer Society
Date: Mon, 13 Nov 1989 23:44
Date: Mon, 13 Nov 1989 23:44
19 lines
1368 bytes
1368 bytes
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 |
+--------------------------------------------------------------------+
Technical Details
Message-ID:
<1989Nov13.234448.7780@newcastle.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!samsung!uunet!mcsun!ukc!newcastle.ac.uk!turing!csocShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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