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..