View Single Post
Old 10-20-2011, 04:32 PM  
Soxiz
Junior Member
 
Join Date: Sep 2002
Posts: 9
Default

I tested a few things and found out what the issue is.

If i have a .net app that only returns a exit code, io works properly and return command failed. The problem happens when i write out text and then exit with a error. The text is displayed properly but the command don't fail. So it seems there is a problem. Below is a code snippet from c#:

public static void Main(string[] args)
{
Console.WriteLine("Test");
Environment.Exit(15);
}

The above code will do print out:

23:26:12 200-Test
23:26:12 200 Command successful.

If it was changed to only have the exit it would print out:

22:57:36 550 Command failed.
Soxiz is offline   Reply With Quote