Busy box, Run C, python or Perl programs

limovala picture limovala · May 6, 2013 · Viewed 9.8k times · Source

All I have is bourne shell and busy box. Is there any way to run a python script or compile a c program or any languages like perl ..

like busybox python eatmemory.py 100M

or

busybox gcc eatmemory.c

What I need is to create a process which will consume a specific amount of memory. and test the performance.

Thanks

Answer

Adrian Frühwirth picture Adrian Frühwirth · May 6, 2013

If your question is

Does busybox come with a python interpreter or C compiler?

then the answer is no.

If it is

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

then see this answer, as suggested by Andrey.