예제 #1
0
 private static string RunOnShellAndCaptureOutput(string fileName, string arguments)
 => ProcessHelper.RunAndCaptureOutput("/bin/sh", $"-c '{fileName} {arguments}'");
예제 #2
0
 private static string RunOnBashAndCaptureOutput(string fileName, string arguments, string workingDirectory = null)
 {
     return(ProcessHelper.RunAndCaptureOutput("/bin/bash", $"-c '{fileName} {arguments}'", workingDirectory));
 }