Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!ads.com!killer!usenet From: anders@verity.com (Anders Wallgren) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW and system() Message-ID: <1991May16.203946.3969@verity.com> Date: 16 May 91 20:39:46 GMT References: <1991May16.152340.7368@oakhill.sps.mot.com> Sender: usenet@verity.com (USENET News) Reply-To: anders@verity.com (Anders Wallgren) Distribution: na Organization: Verity, Inc., Mountain View, CA Lines: 20 In-Reply-To: tomc@oakhill.sps.mot.com (Tom Cunningham) In article <1991May16.152340.7368@oakhill.sps.mot.com>, tomc@oakhill (Tom Cunningham) writes: > >Are there any plans to activate the MPW C library system() routine >such that a string passed to it will be executed as a tool under the >MPW shell? Does something like this already exist, e.g. is there >a way to run an MPW tool from inside another one? I haven't heard anything either way from Apple, but there are ways to get around this limitation if your requirements are limited. Instead of calling system(), echo to stdout, pipe it to a file, and then execute that file. This is how Make works, for example. Of course, this doesn't work if the original tool needs the output of system() before continuing, but that what I mean by 'limited'. It would be nice if MPW could run tools within tools, but right now I'm just happy enough to be able to pull down the Apple and application menus while tools are running... anders