fork download
  1. tool = new Process( );
  2. tool.StartInfo = toolstart;
  3. tool.OutputDataReceived += new DataReceivedEventHandler( delegate( object sender, DataReceivedEventArgs e ) {
  4. if ( e.Data != null ) {
  5. transform( workingdir, drive, line, ref outline );
  6. Console.Out.Write( outline );
  7. }
  8. } );
  9. tool.ErrorDataReceived += new DataReceivedEventHandler( delegate( object sender, DataReceivedEventArgs e ) {
  10. if ( e.Data != null ) {
  11. transform( workingdir, drive, line, ref outline );
  12. Console.Error.Write( outline );
  13. }
  14. } );
  15. tool.Start( );
  16. tool.BeginOutputReadLine( );
  17. tool.BeginErrorReadLine( );
  18. tool.WaitForExit( 300000 );
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty