Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!cs325ec From: cs325ec@ux1.cso.uiuc.edu (Gregory Lemperle-Kerr) Newsgroups: comp.sys.atari.st Subject: Re: Input/Output redirection with Pexec() Keywords: Pexec(), redirection Message-ID: <1990May7.225712.26820@ux1.cso.uiuc.edu> Date: 7 May 90 22:57:12 GMT References: <2330@onion.reading.ac.uk> Organization: University of Illinois at Urbana Lines: 12 adp1@csug.cs.reading.ac.uk (Andrew Pollard) writes: >Hello, > Please could anyone tell me how to redirect standard input and output before >a program is Pexec'ed. As far as I can tell, as soon as the program is started, >it resets its standard channels. I am trying to write a simple command shell. Can't one just replace the gemdos trap vector with an address of one's own routine? Check if it is a output call and buffer or save the output to a file. -- Greg