🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #5090

Re: Need something like exec() in Lattice

#5090
From: Peter Kittel GERMANY
Date: Thu, 30 Aug 1990 10:54
25 lines
1639 bytes
In article <oliphant.3972@telepro.UUCP> 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
Technical Details
Message-ID: <350@cbmger.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cbmvax!cbmehq!cbmger!peterk
References: <oliphant.3972@telepro.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <oliphant.3972@telepro.UUCP>
Reply-To: peterk@cbmger.UUCP (Peter Kittel GERMANY)
Organization: Commodore Bueromaschinen GmbH, West Germany
Lines: 25