Re: waiting command
- To: mathgroup at smc.vnet.net
- Subject: [mg40276] Re: waiting command
- From: Antti Penttilä <Antti.I.Penttila at helsinki.fi>
- Date: Sat, 29 Mar 2003 05:19:22 -0500 (EST)
- Organization: University of Helsinki
- References: <b5uono$lkb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Roberto Brambilla wrote: > Hi, > > I'd like to use Mathematica to run an extermal program, > let me say EMFIELD.EXE with some parameters p1 , p2 : > > Run["EMFIELD.EXE -p1 -p2"] > > Since EMFIELD may take seconds or hours to generate the results, > depending on the complexity of the problem and the values of parameters, > how can I tell Mathematica to wait until the Results.txt file is > created or updated? To my knowledge, the Run command will always wait until the program has executed. So you don't need to wait, the result file should be ready when the Run exits. -- Antti Penttilä