Running applications from a terminal emulator I have a rooted Nexus 7 Jelly Bean tablet and whenever I attempt to run an application from a terminal emulator app after chmod 777ing it and using the syntax ("./applicationName") it insists that I do not have permission to execute even though I granted my self superUser privs using ("su"). After that I did a little research and I learnt that if you copy the file to the (/data/local/temp/) directory you should be able to execute the application. So when I tried that it said that the file does not exist even though it shows up when listing the directory contents using ("ls")

I have no idea what steps to take, if it helps I am tried to run (scp) as a test but I wish to be able to run a custom compiled version of dns2tcp. I know I could have used better applications such as a hello world compiled natively onthe device but i couldnt get my hands on a C compiler for android such as gcc.

Thanks for any advice
try putting sh in front of your command, eg.:

sh ./scp


or

sh -c ./scp