How to run a simple Hello World program on jailbreak iphone?

advertisements

I created a HelloWorld program, and compile it to a mach-o file. Then, I uploaded it to my jailbreak iphone via SSH.

I login with root account. Then, I tried to execute this program by running ./HelloWorld However, I received a "Permission denied"

My HelloWorld program is very simple: #include

int main()
{
    printf("Hello World");
    return 0;
}

any help?

Thanks.


You need to make the program executable. There is a tutorial http://www.ipodstudios.com/how-to-chmod on how to do this for the ipod. I imagine this would also work for the iphone.