Hi all,
Could you please identify below why the output from grep is not being returned in the SOAP response?
Many thanks,
--Glen
Could you please identify below why the output from grep is not being returned in the SOAP response?
Many thanks,
Code:
[WebMethod]
public string Grep()
{
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = @"C:\mingw\bin\grep.exe";
p.Start();
string output = p.StandardOutput.ReadToEnd();
p.WaitForExit();
return output;
}
--Glen