C# 调用 Linux 系统命令

示例代码如下:
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();

 

  

 

上一篇:开源工作流引擎


下一篇:网络并发3