Path: utzoo!attcan!uunet!fub!opal!unido!rwthinf!cip-s06!wolfram From: wolfram@cip-s06.informatik.rwth-aachen.de (Wolfram Roesler) Newsgroups: comp.sys.atari.st.tech Subject: Re: Programming help wanted.. Message-ID: Date: 25 Jan 91 13:51:44 GMT References: <1991Jan8.132507.19263@cck.cov.ac.uk> Sender: news@rwthinf.UUCP Lines: 26 cse183@cck.cov.ac.uk (Neil J Smalley) writes: > I hope someone out there can help. Here's what I'm trying to >do. > - write a program that will run and then call another program >from the same .PRG file. > E.g program file WORK.PRG will in fact be two programs > CHECK.PRG and THIS.PRG >CHECK.PRG will execute first and then call THIS.PRG. > I also want to able to remove CHECK.PRG from THIS.PRG and >seperate the two again. >-- The required Gemdos function is Pexec to execute another prg. After execution control is returned to the calling program. You can also use the AES shell lib functions to call a program while discarding the caller. For further details RTFM. When using Pexec, set the last parameter to NULL or 0 instead of "" in order to pass the environment correctly. BTW, all the world seems to be writing shell programs. But you'll have to do a lot before you reach up to the Okami Shell, see my posting in atari.st.