Author Topic: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?  (Read 1071 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 328
  • Gender: Male
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?
« Last Edit: May 06, 2019, 11:36:18 AM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1071
Re: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?
« Reply #1 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.
« Last Edit: May 07, 2019, 11:53:30 AM by Wisp »

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 328
  • Gender: Male
Re: Output from AT_NOW/UNINSTALL is send to 'StdErr' stream?
« Reply #2 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.
« Last Edit: May 07, 2019, 01:13:03 PM by AL|EN »
You cannot have progress without committing changes...A Basic Modder's Guide to Git and Github

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: