python - 忙框、Run C、python 或 Perl 程序

标签 python linux perl gcc busybox

我只有 bourne shell 和 busy box。 有什么方法可以运行 python 脚本或编译 c 程序或任何语言,如 perl ..

喜欢 busybox python eatmemory.py 100M

busybox gcc eatmemory.c

我需要的是创建一个会消耗特定内存量的进程。并测试性能。

谢谢

最佳答案

如果你的问题是

Does busybox come with a python interpreter or C compiler?

那么答案是否定的

如果是

Is there a way to write a script that will run under busybox' ash shell which will just allocate some memory for me?

然后看this按照安德烈的建议回答。

关于python - 忙框、Run C、python 或 Perl 程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16392469/

相关文章:

perl - 可以使用DBIx::Class创建表吗?

macos - 在 Mac 上从 line 读取 gzip line

python - 你如何在不知道错误的情况下断言两个函数抛出相同的错误?

linux - 如何创建 qmgr 别名

python - 是否有一个 Python 库函数试图猜测某些字节的字符编码?

linux - 将文件内容与其他文件名匹配以提取和合并内容

java - 构建失败: Cannot find an environment variable

perl - 如何在后台执行特定的子程序代码并从中获取结果?

python - 遍历字典并获取键

python - Pandas 用值列表替换最小值 - 逐行