Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何用 C 语言编写一个执行 .sh(shell 脚本)文件的程序?我正在编写一个程序,其中一个功能需要运行一些 shell 脚本。谢谢!
使用系统功能
system("myscript.sh");