Problem with Mathematica in batch mode.
- From: "Dave (from the UK)" <see-my-signature@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 20 May 2006 18:12:02 +0100
I'm trying to run mathematica in batch mode on a UNIX box. If the output appears on two lines, as it does on occasions, the results are wrong. Any help appreciated.
The following puts a set of commands in the file foo, and writes the result to the file foobar, it works fine.
sparrow /tmp % echo "1+2" > foo
sparrow /tmp % math -batchinput -batchoutput < foo > foobar
sparrow /tmp % cat foobar
" Cannot initialize Motif graphics "
3
But here is an example of where it goes wrong. In this case the number has a power, which gets put on another line, which is not directed into the file.
sparrow /tmp % echo "10000000000000+2.043" > foo
sparrow /tmp % math -batchinput -batchoutput < foo > foobar
sparrow /tmp % more foobar
" Cannot initialize Motif graphics "
1.0000000000002043*^13
In this case, Mathematica would normally show 1.0000000000002043*10^13, but the "10" appears on the line above and so gets missed.
--
Dave K MCSE.
MCSE = Minefield Consultant and Solitaire Expert.
Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually.
.
- Follow-Ups:
- Re: Problem with Mathematica in batch mode.
- From: Albert Reiner
- Re: Problem with Mathematica in batch mode.
- From: Peter Pein
- Re: Problem with Mathematica in batch mode.
- Prev by Date: MuPAD and EPS plot
- Next by Date: Re: Computations with non-commuting variables
- Previous by thread: MuPAD and EPS plot
- Next by thread: Re: Problem with Mathematica in batch mode.
- Index(es):
Relevant Pages
|