You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same error as for Issue 7 and Issue 110 except that in my scenario I'm not running bash through the CMD prompt. Originally I was attempting to start bash in a C# program and was trying to capture standard out, which requires that UseShellExecute be false. (that's very important -- if it's true, everything works, but you can't capture standard output) Since the same problem arises in a powershell script, I'll post it here:
PS C:\Users\kirkw> Write-Host "stdout: $stdout"
tdout: E r r o r : 0 x 8 0 0 7 0 0 5 7
PS C:\Users\kirkw> Write-Host "stderr: $stderr"
stderr:
PS C:\Users\kirkw> Write-Host "exit code: " + $p.ExitCode
exit code: + -1
I'm trying to execute a bash program from a C# program (or powershell script) and capture the standard output. This seems unsupported currently. Is this expected behavior? Is there a workaround? Currently the only way I can get this to work is to set UseShellExecute to true, and redirect the output to a temporary file that my C# program subsequently reads. This is less desirable as it makes tracking the output in realtime onerous.
The text was updated successfully, but these errors were encountered:
Same error as for Issue 7 and Issue 110 except that in my scenario I'm not running bash through the CMD prompt. Originally I was attempting to start bash in a C# program and was trying to capture standard out, which requires that
UseShellExecute
be false. (that's very important -- if it's true, everything works, but you can't capture standard output) Since the same problem arises in a powershell script, I'll post it here:The output of that was:
I'm trying to execute a bash program from a C# program (or powershell script) and capture the standard output. This seems unsupported currently. Is this expected behavior? Is there a workaround? Currently the only way I can get this to work is to set
UseShellExecute
to true, and redirect the output to a temporary file that my C# program subsequently reads. This is less desirable as it makes tracking the output in realtime onerous.The text was updated successfully, but these errors were encountered: