示例代码如下:
string chmodCmdStr = "chmod +x ./AEConsole_GatewayService";
Process process = new Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "/bin/bash"; process.StartInfo.Arguments = "-c \"" + chmodCmdStr + " \""; process.StartInfo.CreateNoWindow = true; process.StartInfo.WorkingDirectory = deCompressDir; process.Start(); process.WaitForExit();