Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture the standard output/error of a Process?

How does one capture the standard output/error of a process started by a Process.Start() to a string?

like image 543
Louis Rhys Avatar asked Nov 26 '22 12:11

Louis Rhys


1 Answers

To solve the deadlock problems use this approach:

ProcessStartInfo hanging on "WaitForExit"? Why?

Works well in my code...

like image 139
SAL Avatar answered Dec 09 '22 15:12

SAL