Redirecting output to file
- To: mathgroup@smc.vnet.net
- Subject: [mg12284] Redirecting output to file
- From: "V. Nandagopal" <nandgopa@math.tifr.res.in>
- Date: Thu, 7 May 1998 18:51:21 -0400
Hello, I am doing some computations which I want to be written to a file. The usual (>> or >>) is not sufficient as Mathematica waits for the entire computation to be over before writing to the file. Is there any way I can make Mathematica write to a file dynamically? The computation I attempted was the following: <<combinatorica.m e={{-1, -1, 0, 0, 2}, {-1, -1, 0, 2, 0}, {-1, -1, 2, 0, 0}, {-1, 0, -1, 0, 2}, {-1, 0, -1, 2, 0}, {-1, 0, 0, -1, 2}, {-1, 0, 0, 2, -1}, {-1, 0, 2, -1, 0}, {-1, 0, 2, 0, -1}, {-1, 2, -1, 0, 0}, {-1, 2, 0, -1, 0}, {-1, 2, 0, 0, -1}, {0, -1, -1, 0, 2}, {0, -1, -1, 2, 0}, {0, -1, 0, -1, 2}, {0, -1, 0, 2, -1}, {0, -1, 2, -1, 0}, {0, -1, 2, 0, -1}, {0, 0, -1, -1, 2}, {0, 0, -1, 2, -1}, {0, 0, 2, -1, -1}, {0, 2, -1, -1, 0}, {0, 2, -1, 0, -1}, {0, 2, 0, -1, -1}, {2, -1, -1, 0, 0}, {2, -1, 0, -1, 0}, {2, -1, 0, 0, -1}, {2, 0, -1, -1, 0}, {2, 0, -1, 0, -1}, {2, 0, 0, -1, -1}, {-1, -1, 0, 1, 1}, {-1, -1, 1, 0, 1}, {-1, -1, 1, 1, 0}, {-1, 0, -1, 1, 1}, {-1, 0, 1, -1, 1}, {-1, 0, 1, 1, -1}, {-1, 1, -1, 0, 1}, {-1, 1, -1, 1, 0}, {-1, 1, 0, -1, 1}, {-1, 1, 0, 1, -1}, {-1, 1, 1, -1, 0}, {-1, 1, 1, 0, -1}, {0, -1, -1, 1, 1}, {0, -1, 1, -1, 1}, {0, -1, 1, 1, -1}, {0, 1, -1, -1, 1}, {0, 1, -1, 1, -1}, {0, 1, 1, -1, -1}, {1, -1, -1, 0, 1}, {1, -1, -1, 1, 0}, {1, -1, 0, -1, 1}, {1, -1, 0, 1, -1}, {1, -1, 1, -1, 0}, {1, -1, 1, 0, -1}, {1, 0, -1, -1, 1}, {1, 0, -1, 1, -1}, {1, 0, 1, -1, -1}, {1, 1, -1, -1, 0}, {1, 1, -1, 0, -1}, {1, 1, 0, -1, -1}, {-1, 0, 0, 0, 1}, {-1, 0, 0, 1, 0}, {-1, 0, 1, 0, 0}, {-1, 1, 0, 0, 0}, {0, -1, 0, 0, 1}, {0, -1, 0, 1, 0}, {0, -1, 1, 0, 0}, {0, 0, -1, 0, 1}, {0, 0, -1, 1, 0}, {0, 0, 0, -1, 1}, {0, 0, 0, 1, -1}, {0, 0, 1, -1, 0}, {0, 0, 1, 0, -1}, {0, 1, -1, 0, 0}, {0, 1, 0, -1, 0}, {0, 1, 0, 0, -1}, {1, -1, 0, 0, 0}, {1, 0, -1, 0, 0}, {1, 0, 0, -1, 0}, {1, 0, 0, 0, -1}}; KSubsets[e,4] >> result.out I am running Mathematica 3.0 for Digital Alpha workstation (Alpha@433MHz, with 128MB RAM and oodles of hard disk space. But Mathematica exits on the above saying "Out of Memory". Thanks in advance, V. Nandagopal School of Mathematics Tata Institute of Fundamental Research Colaba, Bombay 400 005, India e-mail: nandgopa@math.tifr.res.in
- Follow-Ups:
- Re: Redirecting output to file
- From: Daniel Lichtblau <danl@wolfram.com>
- Re: Redirecting output to file