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

MathGroup Archive 1997

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

Search the Archive

Re: batch mode mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5652] Re: batch mode mathematica
  • From: george at mech.seas.upenn.edu ( George Jefferson )
  • Date: Sat, 4 Jan 1997 22:56:43 -0500
  • Organization: Mechanical Engineering
  • Sender: owner-wri-mathgroup at wolfram.com

:is it possible to give mathematica command line instructions?  something
:like:

sure...


:math << 'Plot[ Sin[x], {x,0,2*Pi} ]'

for starters the "unix" for reading from stdin is a single "<"
(only within mathematica you use two..)

now put your commands in a file, and run math with the file as stdin.

math < file > output &

Unfortuantely if you put a sequence of commands into the file
mathematica will only send the result of the last one to stdout,
so if you want to record everything you need to use mathematica
commands in your script to write what you want to an output file..


It would be real nice if you could batch execute a notebook,
but that doesn't seem possable..



  • Prev by Date: Re: Help with 'Help' files
  • Next by Date: Re: inert wrapping function
  • Previous by thread: batch mode mathematica
  • Next by thread: Re: batch mode mathematica