Re: how do I portably discard stderr for MathLink programs
- To: mathgroup at smc.vnet.net
- Subject: [mg42344] Re: how do I portably discard stderr for MathLink programs
- From: nafod40 <may106 at NOSPAM.psu.edu>
- Date: Wed, 2 Jul 2003 06:36:06 -0400 (EDT)
- References: <bds0tv$65d$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Langston, Matthew David wrote: > I just ported my MathLink program to a new platform (Linux) and now > when I run my MathLink program the Mathematica message window keeps > popping up with a bunch of stderr output. The stderr output is simply > diagnostic output from a third party library that I have no control > over (but which I link my MathLink program against). > > I don't want users to see this output. How do I portably dump stderr > output in such a way that Mathematica doesn't keep popping up Message > windows. Is there a way to tell Mathematica to ignore this stderr > output? If you do a search on "$Messages" in the Mathematica help, it will show you a way to solve your problem. Basically, reset the $Messages variable to dev/null, so to speak.