Community

AGI Programming => AGI Development Tools => Topic started by: ZvikaZ on April 29, 2021, 07:25:03 AM

Title: conWAGI.exe output redirection fails
Post by: ZvikaZ on April 29, 2021, 07:25:03 AM
Hi.

I've tried to redirect conWAGI.exe's output to file, but the file was empty.
I've also tried to capture the output with Python's subprocess.check_output, but it returned an empty string. I assume these issues are related.

Thanks
Title: Re: conWAGI.exe output redirection fails
Post by: AGKorson on May 03, 2021, 12:07:58 PM
Console apps are not my strong suit. There's probably a compile switch that is needed to allow output redirection? Or maybe I'm supposed to include something in the source code to enable it? I don't know for sure.

I'll add it to the bug list, but unfortunately, it will be way down at the bottom.
Title: Re: conWAGI.exe output redirection fails
Post by: Kawa on May 03, 2021, 01:35:18 PM
This looks promising: http://www.vbi.org/Items/article.asp?id=4
Title: Re: conWAGI.exe output redirection fails
Post by: AGKorson on May 03, 2021, 09:47:40 PM
Thanks for the tip Kawa! Maybe this will be easier than I thought.
Title: Re: conWAGI.exe output redirection fails
Post by: Kawa on May 04, 2021, 04:45:48 AM
We can only hope.