Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site wlcrjs.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!qantel!ihnp4!wlcrjs!rlk
From: rlk@wlcrjs.UUCP (Richard L. Klappal)
Newsgroups: net.micro.cpm
Subject: Re: how to execute programs from within cpm programs
Message-ID: <124@wlcrjs.UUCP>
Date: Sun, 11-Aug-85 01:52:56 EDT
Article-I.D.: wlcrjs.124
Posted: Sun Aug 11 01:52:56 1985
Date-Received: Wed, 14-Aug-85 21:46:44 EDT
References: <946@sdcsla.UUCP>
Reply-To: rlk@wlcrjs.UUCP (Richard L. Klappal)
Distribution: net
Organization: chinet, Public Access UN*X, Chicago
Lines: 33

In article <946@sdcsla.UUCP> hestenes@sdcsla.UUCP (Eric Hestenes) writes:
>Can anyone give me a hint as to how someone would call one program,
>say WORDSTAR or something simpler, from within another program.
>
>Methods using Turbo Pascal, 'C' or assembler would be useful.


Both AZTEC (MANX) and BDS C support the 'exec' statement or an equivalent,
that allow a program to call another.  

NOTE:  These calls are NOT forks, so you cannot return to the original
program.

I believe both systems supply enough of the source to show how it is done.
(if I remember correctly, the file name of the new program is stored
in the BDOS buffer (?at BDOSBASE+8 (?)), and a couple of pointers need
to be set up pointing to the start and end of the filename.


If this is not enough help, send me mail, and I will try to look up
the details.



Richard Klappal

UUCP:		..!ihnp4!wlcrjs!uklpl!rlk  | "Money is truthful.  If a man
MCIMail:	rklappal		   | speaks of his honor, make him
Compuserve:	74106,1021		   | pay cash."
USPS:		1 S 299 Danby Street	   | 
		Villa Park IL 60181	   |	Lazarus Long 
TEL:		(312) 620-4988		   |	    (aka R. Heinlein)
-------------------------------------------------------------------------