[comp.sys.mac] launching programs

dhall@aramis.rutgers.edu (David Hall) (04/19/89)

I need to run a program from within another.  Specifically, I've
written a C program that reads a file, does some computation and
writes a new file.  I have a lisp program (Allegro) that creates the
input file for the C program.  Conceptually what the lisp program
should do is :  
	Construct input file for C program
	Launch C program (C program terminates when it's done)
	Pause until C program is no longer running
	Read output file from C program
I'm running on a IIx under multifinder.  Is there a way to do this.

I'm presently doing it manually.  I construct the input file for the C
program and do a programatic pause in lisp.  I then manually select
multifinder and launch the C program.  When it's done I reselect lisp
(by toggling the icon at the top right of the screen) and resume lisp
from the pause.  I want to automate this manual process.  

Thanks in advance for any help.
--David Hall
  dhall@aramis.rutgers.edu



(p.s. any correction of my mac nomenclature is welcomed.)