Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: running dos executable from mathematica and reading output

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45444] Re: [mg45414] running dos executable from mathematica and reading output
  • From: Yasvir Tesiram <tesiramy at omrf.ouhsc.edu>
  • Date: Wed, 7 Jan 2004 17:31:08 -0500 (EST)
  • References: <200401070609.BAA08895@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
Have a look at Run.

In[1]:= ?Run
Run[expr1, expr2, ... ] generates the printed form of the expressions
expri, separated by spaces, and runs it as an external, operating system,
command.

Cheers

On Wed, 7 Jan 2004 frank.bruggeman at falw.vu.nl wrote:

> Hi,
>
> I am curious whether Mathematica is able to do the following.  I would
> like to run a dos executable (in this case a program that gives an output file
> when fed an input file) by making the input file in Mathematica and
> giving the run command (dos command line) in Mathematica and reading
> the contents of the output file in Mathematica. I know how to write to
> and read contents of external files but I am not familiar with running
> dos executables from Mathematica.  Can anyone help me?
>
> Thank you very much in advance,
> Frank Bruggeman,
> Vrije Universiteit,
> Amsterdam,
> The Netherlands
>


  • Prev by Date: Re: Cell Format - Output Cell, Format Change After Evaluation
  • Next by Date: Re: Compile
  • Previous by thread: running dos executable from mathematica and reading output
  • Next by thread: Re: running dos executable from mathematica and reading output