Batch input and output in Mathematica? -
recently found old post on mathgroup usage of undocumented command-line options -batchinput
, -batchoutput
shown:
if test.mma contains following commands: a=2+2 b=10!; a+b then, running mathematica in batch mode, output first , third commands goes stdout: # math -batchinput -batchoutput < test.mma 4 3628804
but when trying reproduce behavior under windows first output printed in console window. doing wrong?
i tested , got both numbers output. however, if last command not followed carriage return, output posted!
so, please check ending last line carriage return.
Comments
Post a Comment