MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: waiting command

  • To: mathgroup at
  • Subject: [mg40276] Re: waiting command
  • From: Antti Penttilä <Antti.I.Penttila at>
  • Date: Sat, 29 Mar 2003 05:19:22 -0500 (EST)
  • Organization: University of Helsinki
  • References: <b5uono$lkb$>
  • Sender: owner-wri-mathgroup at

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ä

  • Prev by Date: Re: 4.2.1 and Fonts
  • Next by Date: Map Projection with Mathematica
  • Previous by thread: Re: waiting command
  • Next by thread: Questions concerning printing,editing, and copy/paste