Re: controlling stdout

2020-12-05 Thread Shaheed Haque
On Sat, 5 Dec 2020, 21:57 Tom Sgouros, wrote: > Thank you. Now I guess I'll work on figuring out *where* it was redirected. > Sounds good. But the "dunder" version of sys.stdout is an excellent clue -- I did not > know about that, and bonus gratitude points for giving me a new word to use. > L

Re: controlling stdout

2020-12-05 Thread Tom Sgouros
Thank you. Now I guess I'll work on figuring out *where* it was redirected. But the "dunder" version of sys.stdout is an excellent clue -- I did not know about that, and bonus gratitude points for giving me a new word to use. -Tom On Sat, Dec 5, 2020 at 9:06 AM Shaheed Haque wrote: > I would

Re: controlling stdout

2020-12-05 Thread Shaheed Haque
I would hazard a guess that Django has already redirected stderr and or stdout before your code gets to run. I recommend that you stop your code in the debugger just *before* you try your redirection and look at the state of sys.stderr and sys.stdout. Also, I'm not sure if you are aware of the dun

Re: controlling stdout

2020-12-05 Thread Tom Sgouros
Matlab is the native language of the group for which I am building this interface. It is for access to ocean sensor data, and it's being done this way so the scientists whose sensors they are can use a significant body of legacy code in their analyses. (Though I was planning to sneak in an option t

Re: controlling stdout

2020-12-04 Thread Kris A. Stern
Why not try something Python based instead which is also free. What kind of functionality are you looking for? Are you planning to plot, if so you could try numpy, scipy, and matplotlib. On Sat, 5 Dec 2020 at 02:02, Tom Sgouros wrote: > Anybody have any random thoughts about this? I have run out

Re: controlling stdout

2020-12-04 Thread Tom Sgouros
Anybody have any random thoughts about this? I have run out of ideas to test. Thank you, -Tom On Wed, Dec 2, 2020 at 10:32 PM Tom Sgouros wrote: > Hello all: > > I have a Django application that dispatches processing to a matlab script > using exec. How can I capture the stdout and stderr of