编译整个的bash shell到我的应用程序 [英] compile the entire bash shell into my app

查看:197
本文介绍了编译整个的bash shell到我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想知道我怎么编译整个bash shell中进入我的app.I读的地方,为了这个,我编译它的子程序。怎么样?

Hi I want to know how i compile the entire bash shell into my app.I read somewhere that for this i compile its Subroutine. how?

在此先感谢

推荐答案

为什么需要一个嵌入式的bash?

Why do you need an embedded bash?

如果没有更多的细节,我会说,的Lua 是在应用程序中的脚本更合适的方法。

Without more details, I would say that Lua is a more appropriate approach for scripting in an application.

编辑:

这是你的目标设备是iPhone上的其他问题假设,你可能有兴趣在阅读这个问题:的 iPhone - 这可能使系统调用。总之,你不能使用系统()在iPhone上。

Assuming from your other questions that your target device is an iPhone, you may be interested in reading this question: iPhone - is it possible to make system call. In short, you cannot use system() on iPhone.

挖掘与谷歌的主题后,我发现,不仅系统()是不可用的,而且执行exec() NSTask 类。我怀疑的popen()不可用也。

After digging the subject with Google, I found that not only system() is unavailable but also exec() and NSTask class. I suspect that popen() is unavailable as well.

这篇关于编译整个的bash shell到我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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