Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cbmvax!cbmehq!cbmger!peterk From: peterk@cbmger.UUCP (Peter Kittel GERMANY) Newsgroups: comp.sys.amiga.tech Subject: Re: Need something like exec() in Lattice Message-ID: <350@cbmger.UUCP> Date: 30 Aug 90 10:54:13 GMT References: Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY) Organization: Commodore Bueromaschinen GmbH, West Germany Lines: 25 In article oliphant@telepro.UUCP (Mike Oliphant) writes: >Does anyone know of a way to get behavior identical to Manx's exec family of >routines in Lattice? I need to chain one program to another, loading the >second program over top of the first. Why not use the function Execute() of the Amiga exec library? You can pass it a complete CLI command line. If you want to let your old program leave the system then precede this command line with a "run" and then close down the first program. If you problems with input channels then use "newcli ... from batchfile". If you are more expert with Amiga topics then use LoadSeg(). > Manx does this beautifully, but Lattice >doens't seem to be able to do it at all. I can't believe that Manx is able to load a new program on top of it, into the same memory area, as I understand it from your posting. Also I think it cannot use the same task structure, so it just MUST open a new process. If Manx does all this, tell me, that would sound interesting. -- Best regards, Dr. Peter Kittel // E-Mail to Commodore Frankfurt, Germany \X/ rutgers!cbmvax!cbmger!peterk