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: Mathematica 5.0 "RunThrough" Command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45339] Re: [mg45322] Mathematica 5.0 "RunThrough" Command
  • From: Yasvir Tesiram <tesiramy at omrf.ouhsc.edu>
  • Date: Thu, 1 Jan 2004 05:54:31 -0500 (EST)
  • References: <200312300914.EAA26783@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
Try this,
In the first instance use SetDirectory to change to the directory where
your file is or Append it to your Mathematica $Path variable. Then,

Run["type", "init.m"]
or
!type init.m

At least these two methods do what you are expecting them to do and
are better explained by the documentaion for RunThrough
rather than for Run or !.

Go figure.

Happy New Year

Yas


> Hello.
>
> The Mathematica 5.0 "RunThrough" documentation states ...
>
> --------------------------------------------------------------------------------
>
> The function RunThrough writes the text of an expression to a
> temporary file, then feeds this file as input to an external program,
> and captures the output as input to Mathematica.
>
> This feeds the expression 789 to the external program cat, which in
> this case simply echoes the text of the expression. The output from
> cat is then read back into Mathematica.
>
> In[5]:= RunThrough["cat", 789]
> Out[5]= 789
>
> --------------------------------------------------------------------------------
>
> When I launch MATH.EXE on my Windows 2000 PC, some syntax errors occur
> which I do not know how to correct.  The file INIT.M is in my
> Mathematica home directory.
>
>
> Mathematica 5.0 for Microsoft Windows
> Copyright 1988-2003 Wolfram Research, Inc.
>  -- Terminal graphics initialized --
>
> In[1]:= RunThrough["type", "init.m"]
> The syntax of the command is incorrect.
>
> In[2]:= RunThrough["type", init.m]
> The syntax of the command is incorrect.
>
> In[3]:=
>
>
> Does anyone have advice on using "RunThrough", "Run", or "!" in a DOS
> window (MATH.EXE), or in the Mathematica Terminal Emulator Window
> (MATHKERNEL.EXE)?
>


  • Prev by Date: Re: Compile
  • Next by Date: multiple derivatives?
  • Previous by thread: Re: Compile
  • Next by thread: RE: Mathematica 5.0 "RunThrough" Command