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: [mg45437] Re: running dos executable from mathematica and reading output
  • From: "John Jowett" <John.Jowett at cern.ch>
  • Date: Wed, 7 Jan 2004 17:31:01 -0500 (EST)
  • Organization: CERN
  • References: <btg82d$8rt$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

This is perfectly possible and I do it all the time.  The best answer, on
Windows and Unix, is not to use Run.  See my recent post to this list  on
"Run[] and Mathlink".  You can also find it via

http://groups.google.com/groups?q=jowett+readlist

John Jowett

P.S. I assume that by "dos executable" you mean a Windows command-line
program.

"Frank Bruggeman" <frank.bruggeman at falw.vu.nl> wrote in message
news:btg82d$8rt$1 at smc.vnet.net...
> 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: Compile
  • Next by Date: 2^20991011-1
  • Previous by thread: Re: running dos executable from mathematica and reading output
  • Next by thread: Cell Format - Output Cell, Format Change After Evaluation