Util.Cmd output
Options
I'm attempting to use the Util.Cmd function with programs which output to stdErr.
While LinqPad prints the output, there is nothing returned from the call. How can I capture the stdErr output?
Comments
-
Which version of LINQPad?
When I run the following in LINQPad 6:
Util.Cmd ("dotnet foo");
it outputs the following:
Could not execute because the specified command or file was not found. Possible reasons for this include: * You misspelled a built-in dotnet command. * You intended to execute a .NET program, but dotnet-foo does not exist. * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
-
Version 6.14.10
I'm using 2 programs Ffmpeg & Mp4Box which both output to stderr, and get 2 different results.LinqPad prints the output from both correctly but MP4Box returns no items whilst ffmpeg returns an error which does seem to contain the output text, or part thereof.
-
The output looks like this. LinqPad 5 only outputs the Dump()