Joã*_*oli 5 c# linux shell mono
我在尝试将输入写入 Linux 进程时遇到问题。代码如下:
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.WorkingDirectory = "'/home/"+user+"/pacotes/"+nome_pacote.Text+"-1.0/'";
process.StartInfo.FileName="dh_make";
process.StartInfo.Arguments="-n -s";
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardInput = true;
process.Start();
Thread.Sleep(3000);
process.StandardInput.WriteLine();
Run Code Online (Sandbox Code Playgroud)
错误如下:
System.IO.IOException:路径 /home/vinholi/Ubuntu One/Uso do linux em flash drivers/Programa gerador de .deb/GeradorDeb/GeradorDeb/bin/Debug/[Unknown] 位于 System.IO.FileStream.FlushBuffer (System.IO.Stream st) [0x00000] in :0 at System.IO.FileStream.FlushBuffer () [0x00000] in :0 at System.IO.FileStream.Dispose (布尔处置) [0x00000] in :0
Tom*_*Tom -2
您也尝试写入的路径也无法写入。“ /home/vinholi/Ubuntu One/Uso do linux em 闪存驱动器/Programa gerador de .deb/GeradorDeb/GeradorDeb/bin/Debug/”
看起来像是一个 USB 驱动器。检查以下内容:
| 归档时间: |
|
| 查看次数: |
2620 次 |
| 最近记录: |