Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7350
| From | Szabolcs <szhorvat@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | RunThrough[] does not work on Windows (bug) |
| Date | 2011-12-19 12:24 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jcnad1$e8h$1@smc.vnet.net> (permalink) |
On Windows, RunThrough[] simply doesn't work. Try for example installing the cat utility (e.g. from gnuwin32) and running RunThrough["cat", 123]. It will pop up a command window for a split second, but will not return anything. I looked at the source of RunThrough, and the problem is that it makes two temporary files for input and output, but doesn't quote the file names (which might contain spaces). The command line that RunThrough assembles and runs on my machine looks like this: cat < C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\m-df560c34-9ee2-457e-966e-8d52b32285ac > C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\m-0aa1555f-e043-47c3-ab67-e8306ca7ac84 This won't work. It should be the following instead: cat < "C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\m-df560c34-9ee2-457e-966e-8d52b32285ac" > "C:\\Documents and Settings\\Administrator\\Local Settings\\Temp\\m-0aa1555f-e043-47c3-ab67-e8306ca7ac84" Now that I know that RunThrough is implemented in Mathematica, and uses temp files (has no special pipe handling), it's easy to come up with a workaround.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
RunThrough[] does not work on Windows (bug) Szabolcs <szhorvat@gmail.com> - 2011-12-19 12:24 +0000
csiph-web