Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: AL|EN on May 06, 2019, 11:24:59 AM

Title: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?
Post by: AL|EN on May 06, 2019, 11:24:59 AM
Hi wisp,
Example: "IWD NPC" mod has

AT_NOW ~IWDNPC/Audio/AudioInstallBG2.bat~
AT_UNINSTALL ~IWDNPC/Audio/AudioUninstallBG2.bat~

and while output from weidu is send to StdOut stream, the output from .bat file is send to 'StdErr' stream.

Can you confirm? If yes, what's the reason?
Title: Re: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?
Post by: Wisp on May 07, 2019, 11:51:46 AM
WeiDU does not listen to the inferior process. If you are picking up stuff on stderr, it'd be because that's the channel to which the process is writing. At least, that's how it works for the perl script I wrote to test this.
Title: Re: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?
Post by: AL|EN on May 07, 2019, 01:10:04 PM
Indeed oggdec.exe is writing to StdErr stream, that's helpful, thanks. I also found '--log-extern' commandline switch, which combines the output from 'oggdec Audio\*.ogg' to the StdOut stream so I've achieved my goal. Let's hope that it won't cause more problems/hangs that it's worth it.