Path: utzoo!attcan!uunet!mcvax!unido!iraun1!iraul1!norbert From: norbert@iraul1.ira.uka.de (Norbert Lindenberg) Newsgroups: comp.sys.mac.programmer Subject: Re: Sublaunching from MPW Message-ID: <783@iraun1.ira.uka.de> Date: 5 Feb 89 11:47:31 GMT Sender: news@iraun1.ira.uka.de Reply-To: norbert@iraul1.ira.uka.de (Norbert Lindenberg) Organization: Karlsruhe University, West-Germany Lines: 14 Bjorn Freeman-Benson asks: > I have a program that would like to run the MPW C compiler as a > subtask. This program is an MPW Tool, and I would like to run the C > compiler just the way that the Shell runs a Tool --- it runs that > then control returns to the Shell. Nope, subprocesses are not supported by MPW, the Shell only allows to run one tool at a time. The general workaround is to split the single program you would have under Unix into two parts for MPW: a tool that creates a script, and a script that runs your tool and executes the tool's output. Look at the way the BuildProgram script uses the Make tool to get the idea. -- Norbert