Thanks, that was the hint I needed.  (Apologies to Aahz--he knows why.)


On Mon, Feb 14, 2011 at 1:23 PM, Aahz <> wrote:
On Mon, Feb 14, 2011, David Goldsmith wrote:
> Hi!  Sorry again if this is AAE: I need to call a py2exe-d app from MATLAB
> such that the latter can process the output of the former.  I've figured out
> how to do everything but pass the result of the P2E app into MATLAB (which
> simply uses a system call to run the P2E, i.e., I _think_ the fact that I'm
> calling it from MATLAB is irrelevant--how would I do this if I were, say,
> calling the P2E from a batch file which I then wanted to process the
> result)?  Thanks!

The called program needs to write to stdout, the calling program needs to
read the output.  See the subprocess module.  For anything more
complicated, you need to think about what you want and how to go about
it, the general term for searching more info is "interprocess
Aahz (           <*>

"Programming language design is not a rational science. Most reasoning
about it is at best rationalization of gut feelings, and at worst plain
wrong."  --GvR, python-ideas, 2009-03-01

The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
Py2exe-users mailing list

In science it often happens that scientists say, 'You know that's a really good argument; my position is mistaken,' and then they would actually change their minds and you never hear that old view from them again. They really do it. It doesn't happen as often as it should, because scientists are human and change is sometimes painful. But it happens every day. I cannot recall the last time something like that happened in politics or religion.

- Carl Sagan, 1987 CSICOP address