Is there a way to write to the stdout from a standalone?
I have a console application that fires up a standalone in headless mode but I haven't been able to find a way to write to the stdout.
Here's the code that launches the standalone:
var startInfo = new ProcessStartInfo
{
FileName = Directory.GetCurrentDirectory() + "\\Server\\server.exe",
Arguments = "-batchmode",
RedirectStandardOutput = true,
UseShellExecute = false,
};
_process = new Process
{
StartInfo = startInfo
};
_process.OutputDataReceived += Received;
_process.Start();
↧