How to execute a shell script from C in Linux?

后端 未结 6 1974
旧巷少年郎
旧巷少年郎 2020-11-28 03:34

How can I execute a shell script from C in Linux?

6条回答
  •  悲哀的现实
    2020-11-28 04:10

    If you need more fine-grade control, you can also go the fork pipe exec route. This will allow your application to retrieve the data outputted from the shell script.

提交回复
热议问题