Message Boards Message Boards

0
|
2990 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Run two external programs sequentialy

Hi!
  i have a problem.
Which is the best method to run a external program and , when the computing (of external program) is finished,  to keep on Mathematica.
In my exemple my external program is castem13.
I would like to run the first castem script (CUPOLA) and then the second castem script (camino).
Then to keep the calculation with Mathematica.

path ="C:\\Documents and Settings\\fperon\\Desktop\\Marg\\desktop PC";
SetDirectory;
Run["start /min castem13.bat CUPOLA.txt"]
Run["start /min castem13.bat camino.txt"]

thank for your help in advance

Margherita
Run returns the exit status of the command. I'm not sure I understand your question. 

What do these files do? What are castem scripts? They appear to just be text files according to the file extensions. 

If these scripts write some results to a file, then you can import that file into Mathematica. 
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract