在C程序运行shell命令 [英] Running a shell command in a c program

查看:108
本文介绍了在C程序运行shell命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的C程序运行shell命令。但事实是,我不想让我的程序等待命令执行。无需读取shell命令的输出(反正它没有返回数据)所以基本上,这可能吗?

I want to run a shell command in my c program. But the thing is that i don't want to make my program wait until the command performed. No need to read the shell command's output (it returns no data anyway) So basically, is that possible?

推荐答案

叉()系统()是你所需要的。

这篇关于在C程序运行shell命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆