Author Topic: Console error messages not displayed in "os shell"  (Read 2782 times)

mtraudt

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Console error messages not displayed in "os shell"
« on: January 25, 2007, 06:07:04 pm »
I am using SE11 on Windows XP, although I do not believe this is specific to any one version of SE or Windows.

If I run a command-line program from within the SE process shell, and the program writes to stderr - e.g. from C# calling Console.Err.WriteLine() - then I do not see the error messages.  The really weird thing is it displays one blank line for every line in the error message, but not the actual message text.

Messages written to stdout - e.g. Console.WriteLine() - display fine.  If I run the same program from a standard Windows shell (cmd.exe) then the error messages are displayed, so it seems to be something specific to the SE shell.

hs2

  • Senior Community Member
  • Posts: 2749
  • Hero Points: 289
Re: Console error messages not displayed in "os shell"
« Reply #1 on: January 25, 2007, 07:43:29 pm »
You can try
<your program> 2>&1
to join stderr with stdout which is captured properly by SE.

HS2