求教,关于C++代码里嵌套shell脚本的问题
linux吧
全部回复
仅看楼主
level 1
梅丽珊卓 楼主
我的shell是bash
我写了一个脚本a.sh,位于/home/ptk/shell_templaet
一个C++程序里
system("/home/ptk/shell_templaet/a.sh");
语句A;
然后程序运行是 语句A 必须等到脚本a.sh执行完毕才能开始执行
我想有没有办法让这个脚本执行(未完成)时,就开始执行语句A,或者让2者同时开始
2014年11月09日 08点11分 1
level 8
多线程多进程都可以
2014年11月09日 08点11分 4
level 11
execv
2014年11月10日 05点11分 5
1