我有一些shell脚本(bash)在mac上正常工作。但我想在C#中的窗口上运行它们。我认为cygwin可以做到这一点。但我不知道如何编写代码。有没有人可以帮助我?c#(.net)在Windows上运行shell脚本由cygwin
0
A
回答
0
您可以使用Process类在C#下使用CYGWIN。
还有其他问题涉及CYGWIN。看看这个问题: bash pipes - I am trying to call script from c#
相关问题
- 1. 运行shell脚本由C
- 2. 通过在Windows Server 2008上运行的Jenkins运行shell脚本
- 3. Unity c#运行shell脚本
- 4. Cygwin的Shell脚本
- 5. 如何在cygwin中执行shell脚本?
- 6. Cygwin Python脚本使用cygwinreg,可以在Windows上运行Python
- 7. 从Windows CMD运行Python Shell(绕过cygwin)
- 8. 在Windows上运行shell脚本 - 使用DAMP进行Drupal安装
- 9. 使用NppExec(和Cygwin)在Notepad ++中从Windows内部运行bash shell脚本
- 10. 在没有Cygwin的Windows下运行shell脚本/要求从客户端下载
- 11. C++:在linux shell脚本中运行gdb
- 12. 无法在Cygwin中使用java运行Shell脚本
- 13. 检测在Cygwin中运行的shell脚本
- 14. Cygwin和Netbeans:在默认的Windows shell上运行?
- 15. Hudson - 运行shell脚本的windows slave
- 16. Windows,从Ruby运行shell脚本?
- 17. 编写运行cygwin bash并执行程序的shell脚本
- 18. 如何在IronWorker上运行shell脚本?
- 19. 在Ubuntu关机上运行Shell脚本
- 20. 在服务器上运行Shell脚本
- 21. 在Flask上运行shell脚本
- 22. 在cPanel上运行Shell脚本
- 23. 在PHP上运行shell脚本?
- 24. 在adb shell上运行linux bash脚本
- 25. 运行shell脚本
- 26. 运行shell脚本++
- 27. 运行shell脚本
- 28. 运行shell脚本
- 29. 运行在shell脚本
- 30. 如何在Teamcity Windows代理上运行shell脚本?
希望我正确理解你的问题:http://stackoverflow.com/questions/15234448/run-shell-commands-using-c-sharp-and-get-the-info-into -string – Jannik 2014-10-28 06:49:45
@Jannik谢谢,让我们说我有一个命令行:“./ foo.sh -c黑色。”如何运行这个? – tynewstar 2014-10-28 07:10:18