🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #41147

launching programs

#41147
From: David Hall
Date: Tue, 18 Apr 1989 23:36
25 lines
1362 bytes
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.)
Technical Details
Message-ID: <Apr.18.19.36.29.1989.1825@aramis.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!aramis.rutgers.edu!dhall

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!aramis.rutgers.edu!dhall
From: dhall@aramis.rutgers.edu (David Hall)
Newsgroups: comp.sys.mac
Subject: launching programs
Message-ID: <Apr.18.19.36.29.1989.1825@aramis.rutgers.edu>
Date: 18 Apr 89 23:36:29 GMT
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 25