MathGroup Archive 1997

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

Search the Archive

Re: batch mode mathematica

  • To: mathgroup at
  • Subject: [mg5652] Re: batch mode mathematica
  • From: george at ( George Jefferson )
  • Date: Sat, 4 Jan 1997 22:56:43 -0500
  • Organization: Mechanical Engineering
  • Sender: owner-wri-mathgroup at

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


: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